git.delta.rocks / unique-network / refs/commits / b8e9f6761f07

difftreelog

build pull changes from upstream substrate

Yaroslav Bolyukin2022-02-07parent: #bd1249e.patch.diff
in: master

4 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -99,15 +99,15 @@
 
 [[package]]
 name = "anyhow"
-version = "1.0.52"
+version = "1.0.53"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "84450d0b4a8bd1ba4144ce8ce718fbc5d071358b1e5384bace6536b3d1f2d5b3"
+checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0"
 
 [[package]]
 name = "approx"
-version = "0.5.0"
+version = "0.5.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "072df7202e63b127ab55acfe16ce97013d5b97bf160489336d3f1840fd78e99e"
+checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
 dependencies = [
  "num-traits",
 ]
@@ -216,7 +216,7 @@
  "parking",
  "polling",
  "slab",
- "socket2 0.4.2",
+ "socket2 0.4.4",
  "waker-fn",
  "winapi 0.3.9",
 ]
@@ -287,9 +287,9 @@
 
 [[package]]
 name = "async-std-resolver"
-version = "0.20.3"
+version = "0.20.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed4e2c3da14d8ad45acb1e3191db7a918e9505b6f155b218e70a7c9a1a48c638"
+checksum = "dbf3e776afdf3a2477ef4854b85ba0dff3bd85792f685fb3c68948b4d304e4f0"
 dependencies = [
  "async-std",
  "async-trait",
@@ -301,9 +301,9 @@
 
 [[package]]
 name = "async-task"
-version = "4.0.3"
+version = "4.1.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0"
+checksum = "677d306121baf53310a3fd342d88dc0824f6bbeace68347593658525565abee8"
 
 [[package]]
 name = "async-trait"
@@ -388,9 +388,9 @@
 
 [[package]]
 name = "backtrace"
-version = "0.3.63"
+version = "0.3.64"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "321629d8ba6513061f26707241fa9bc89524ff1cd7a915a97ef0c62c666ce1b6"
+checksum = "5e121dee8023ce33ab248d9ce1493df03c3b38a659b240096fcbd7048ff9c31f"
 dependencies = [
  "addr2line",
  "cc",
@@ -435,7 +435,7 @@
 dependencies = [
  "beefy-primitives",
  "fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "parity-scale-codec",
  "parking_lot 0.11.2",
@@ -465,7 +465,7 @@
  "beefy-gadget",
  "beefy-primitives",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-core-client",
  "jsonrpc-derive",
@@ -502,9 +502,9 @@
 
 [[package]]
 name = "bimap"
-version = "0.6.1"
+version = "0.6.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "50ae17cabbc8a38a1e3e4c1a6a664e9a09672dc14d0896fa8d865d3a5a446b07"
+checksum = "bc0455254eb5c6964c4545d8bac815e1a1be4f3afe0ae695ea539c12d728d44b"
 
 [[package]]
 name = "bincode"
@@ -634,9 +634,9 @@
 
 [[package]]
 name = "block-buffer"
-version = "0.10.0"
+version = "0.10.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95"
+checksum = "03588e54c62ae6d763e2a80090d50353b785795361b4ff5b3bf0a5097fc31c0b"
 dependencies = [
  "generic-array 0.14.5",
 ]
@@ -682,7 +682,7 @@
 [[package]]
 name = "bp-header-chain"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "finality-grandpa",
  "frame-support",
@@ -698,7 +698,7 @@
 [[package]]
 name = "bp-message-dispatch"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bp-runtime",
  "frame-support",
@@ -710,7 +710,7 @@
 [[package]]
 name = "bp-messages"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bitvec",
  "bp-runtime",
@@ -726,7 +726,7 @@
 [[package]]
 name = "bp-polkadot-core"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bp-messages",
  "bp-runtime",
@@ -744,7 +744,7 @@
 [[package]]
 name = "bp-rococo"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bp-messages",
  "bp-polkadot-core",
@@ -761,7 +761,7 @@
 [[package]]
 name = "bp-runtime"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-support",
  "hash-db",
@@ -779,7 +779,7 @@
 [[package]]
 name = "bp-test-utils"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bp-header-chain",
  "ed25519-dalek",
@@ -794,7 +794,7 @@
 [[package]]
 name = "bp-wococo"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bp-messages",
  "bp-polkadot-core",
@@ -809,7 +809,7 @@
 [[package]]
 name = "bridge-runtime-common"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bp-message-dispatch",
  "bp-messages",
@@ -931,7 +931,7 @@
 dependencies = [
  "camino",
  "cargo-platform",
- "semver 1.0.4",
+ "semver 1.0.5",
  "serde",
  "serde_json",
 ]
@@ -1041,9 +1041,9 @@
 
 [[package]]
 name = "clang-sys"
-version = "1.3.0"
+version = "1.3.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fa66045b9cb23c2e9c1520732030608b02ee07e5cfaa5a521ec15ded7fa24c90"
+checksum = "4cc00842eed744b858222c4c9faf7243aafc6d33f92f96935263ef4d8a41ce21"
 dependencies = [
  "glob",
  "libc",
@@ -1229,9 +1229,9 @@
 
 [[package]]
 name = "crc32fast"
-version = "1.3.0"
+version = "1.3.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "738c290dfaea84fc1ca15ad9c168d083b05a714e1efddd8edaab678dc28d2836"
+checksum = "a2209c310e29876f7f0b2721e7e26b84aff178aa3da5d091f9bfbf47669e60e3"
 dependencies = [
  "cfg-if 1.0.0",
 ]
@@ -1259,9 +1259,9 @@
 
 [[package]]
 name = "crossbeam-epoch"
-version = "0.9.6"
+version = "0.9.7"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97242a70df9b89a65d0b6df3c4bf5b9ce03c5b7309019777fbde37e7537f8762"
+checksum = "c00d6d2ea26e8b151d99093005cb442fb9a37aeaca582a03ec70946f49ab5ed9"
 dependencies = [
  "cfg-if 1.0.0",
  "crossbeam-utils",
@@ -1272,9 +1272,9 @@
 
 [[package]]
 name = "crossbeam-utils"
-version = "0.8.6"
+version = "0.8.7"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cfcae03edb34f947e64acdb1c33ec169824e20657e9ecb61cef6c8c74dcb8120"
+checksum = "b5e5bed1f1c269533fa816a0a5492b3545209a205ca1a54842be180eb63a16a6"
 dependencies = [
  "cfg-if 1.0.0",
  "lazy_static",
@@ -1383,7 +1383,7 @@
  "cumulus-client-network",
  "cumulus-primitives-core",
  "cumulus-relay-chain-interface",
- "futures 0.3.19",
+ "futures 0.3.21",
  "parity-scale-codec",
  "parking_lot 0.10.2",
  "polkadot-node-primitives",
@@ -1406,7 +1406,7 @@
  "async-trait",
  "cumulus-client-consensus-common",
  "cumulus-primitives-core",
- "futures 0.3.19",
+ "futures 0.3.21",
  "parity-scale-codec",
  "sc-client-api",
  "sc-consensus",
@@ -1435,7 +1435,7 @@
  "async-trait",
  "cumulus-relay-chain-interface",
  "dyn-clone",
- "futures 0.3.19",
+ "futures 0.3.21",
  "parity-scale-codec",
  "polkadot-primitives",
  "sc-client-api",
@@ -1456,7 +1456,7 @@
  "async-trait",
  "cumulus-relay-chain-interface",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "parity-scale-codec",
  "parking_lot 0.11.2",
@@ -1480,7 +1480,7 @@
 dependencies = [
  "cumulus-primitives-core",
  "cumulus-relay-chain-interface",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "parity-scale-codec",
  "polkadot-node-primitives",
@@ -1713,7 +1713,7 @@
  "async-trait",
  "cumulus-primitives-core",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "parking_lot 0.11.2",
  "polkadot-overseer",
  "sc-client-api",
@@ -1734,7 +1734,7 @@
  "async-trait",
  "cumulus-primitives-core",
  "cumulus-relay-chain-interface",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "parking_lot 0.11.2",
  "polkadot-client",
@@ -1902,7 +1902,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "b697d66081d42af4fba142d56918a3cb21dc8eb63372c6b85d14f44fb9c5979b"
 dependencies = [
- "block-buffer 0.10.0",
+ "block-buffer 0.10.1",
  "crypto-common",
  "generic-array 0.14.5",
 ]
@@ -2071,25 +2071,12 @@
 
 [[package]]
 name = "env_logger"
-version = "0.7.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
-dependencies = [
- "atty",
- "humantime 1.3.0",
- "log",
- "regex",
- "termcolor",
-]
-
-[[package]]
-name = "env_logger"
 version = "0.9.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
 dependencies = [
  "atty",
- "humantime 2.1.0",
+ "humantime",
  "log",
  "regex",
  "termcolor",
@@ -2174,9 +2161,9 @@
 
 [[package]]
 name = "event-listener"
-version = "2.5.1"
+version = "2.5.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59"
+checksum = "77f3309417938f28bf8228fcff79a4a37103981e3e186d2ccd19c74b38f4eb71"
 
 [[package]]
 name = "evm"
@@ -2265,7 +2252,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
 ]
 
 [[package]]
@@ -2282,9 +2269,9 @@
 
 [[package]]
 name = "fastrand"
-version = "1.6.0"
+version = "1.7.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "779d043b6a0b90cc4c0ed7ee380a6504394cee7efd7db050e3774eee387324b2"
+checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf"
 dependencies = [
  "instant",
 ]
@@ -2299,7 +2286,7 @@
  "fc-db",
  "fp-consensus",
  "fp-rpc",
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "parity-scale-codec",
  "sc-client-api",
@@ -2341,7 +2328,7 @@
  "fc-db",
  "fp-consensus",
  "fp-rpc",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "log",
  "sc-client-api",
@@ -2365,7 +2352,7 @@
  "fp-evm",
  "fp-rpc",
  "fp-storage",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-util",
  "jsonrpc-core",
  "jsonrpc-pubsub",
@@ -2393,7 +2380,7 @@
  "sp-runtime",
  "sp-storage",
  "sp-transaction-pool",
- "tokio 1.15.0",
+ "tokio 1.16.1",
 ]
 
 [[package]]
@@ -2425,11 +2412,11 @@
 
 [[package]]
 name = "file-per-thread-logger"
-version = "0.1.4"
+version = "0.1.5"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fdbe0d94371f9ce939b555dd342d0686cc4c0cadbcd4b61d70af5ff97eb4126"
+checksum = "21e16290574b39ee41c71aeb90ae960c504ebaf1e2a1c87bd52aa56ed6e1a02f"
 dependencies = [
- "env_logger 0.7.1",
+ "env_logger",
  "log",
 ]
 
@@ -2440,7 +2427,7 @@
 checksum = "e8ac3ff5224ef91f3c97e03eb1de2db82743427e91aaa5ac635f454f0b164f5a"
 dependencies = [
  "either",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "log",
  "num-traits",
@@ -2849,9 +2836,9 @@
 
 [[package]]
 name = "futures"
-version = "0.3.19"
+version = "0.3.21"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28560757fe2bb34e79f907794bb6b22ae8b0e5c669b638a1132f2592b19035b4"
+checksum = "f73fe65f54d1e12b726f517d3e2135ca3125a437b6d998caf1962961f7172d9e"
 dependencies = [
  "futures-channel",
  "futures-core",
@@ -2864,9 +2851,9 @@
 
 [[package]]
 name = "futures-channel"
-version = "0.3.19"
+version = "0.3.21"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba3dda0b6588335f360afc675d0564c17a77a2bda81ca178a4b6081bd86c7f0b"
+checksum = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010"
 dependencies = [
  "futures-core",
  "futures-sink",
@@ -2874,15 +2861,15 @@
 
 [[package]]
 name = "futures-core"
-version = "0.3.19"
+version = "0.3.21"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0c8ff0461b82559810cdccfde3215c3f373807f5e5232b71479bff7bb2583d7"
+checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3"
 
 [[package]]
 name = "futures-executor"
-version = "0.3.19"
+version = "0.3.21"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29d6d2ff5bb10fb95c85b8ce46538a2e5f5e7fdc755623a7d4529ab8a4ed9d2a"
+checksum = "9420b90cfa29e327d0429f19be13e7ddb68fa1cccb09d65e5706b8c7a749b8a6"
 dependencies = [
  "futures-core",
  "futures-task",
@@ -2892,9 +2879,9 @@
 
 [[package]]
 name = "futures-io"
-version = "0.3.19"
+version = "0.3.21"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1f9d34af5a1aac6fb380f735fe510746c38067c5bf16c7fd250280503c971b2"
+checksum = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b"
 
 [[package]]
 name = "futures-lite"
@@ -2913,9 +2900,9 @@
 
 [[package]]
 name = "futures-macro"
-version = "0.3.19"
+version = "0.3.21"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6dbd947adfffb0efc70599b3ddcf7b5597bb5fa9e245eb99f62b3a5f7bb8bd3c"
+checksum = "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -2935,15 +2922,15 @@
 
 [[package]]
 name = "futures-sink"
-version = "0.3.19"
+version = "0.3.21"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3055baccb68d74ff6480350f8d6eb8fcfa3aa11bdc1a1ae3afdd0514617d508"
+checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868"
 
 [[package]]
 name = "futures-task"
-version = "0.3.19"
+version = "0.3.21"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ee7c6485c30167ce4dfb83ac568a849fe53274c831081476ee13e0dce1aad72"
+checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a"
 
 [[package]]
 name = "futures-timer"
@@ -2953,9 +2940,9 @@
 
 [[package]]
 name = "futures-util"
-version = "0.3.19"
+version = "0.3.21"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9b5cf40b47a271f77a8b1bec03ca09044d99d2372c0de244e66430761127164"
+checksum = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a"
 dependencies = [
  "futures 0.1.31",
  "futures-channel",
@@ -3055,22 +3042,21 @@
 
 [[package]]
 name = "gloo-timers"
-version = "0.2.2"
+version = "0.2.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6f16c88aa13d2656ef20d1c042086b8767bbe2bdb62526894275a1b062161b2e"
+checksum = "4d12a7f4e95cfe710f1d624fb1210b7d961a5fb05c4fd942f4feab06e61f590e"
 dependencies = [
  "futures-channel",
  "futures-core",
  "js-sys",
  "wasm-bindgen",
- "web-sys",
 ]
 
 [[package]]
 name = "h2"
-version = "0.3.10"
+version = "0.3.11"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c9de88456263e249e241fcd211d3954e2c9b0ef7ccfc235a444eb367cae3689"
+checksum = "d9f1f717ddc7b2ba36df7e871fd88db79326551d3d6f1fc406fbfd28b582ff8e"
 dependencies = [
  "bytes 1.1.0",
  "fnv",
@@ -3080,7 +3066,7 @@
  "http",
  "indexmap",
  "slab",
- "tokio 1.15.0",
+ "tokio 1.16.1",
  "tokio-util",
  "tracing",
 ]
@@ -3124,6 +3110,15 @@
 ]
 
 [[package]]
+name = "hashbrown"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c21d40587b92fa6a6c6e3c1bdbf87d75511db5672f9c93175574b3a00df1758"
+dependencies = [
+ "ahash",
+]
+
+[[package]]
 name = "heck"
 version = "0.3.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -3258,15 +3253,6 @@
 
 [[package]]
 name = "humantime"
-version = "1.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f"
-dependencies = [
- "quick-error 1.2.3",
-]
-
-[[package]]
-name = "humantime"
 version = "2.1.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
@@ -3288,8 +3274,8 @@
  "httpdate",
  "itoa 0.4.8",
  "pin-project-lite 0.2.8",
- "socket2 0.4.2",
- "tokio 1.15.0",
+ "socket2 0.4.4",
+ "tokio 1.16.1",
  "tower-service",
  "tracing",
  "want",
@@ -3307,7 +3293,7 @@
  "log",
  "rustls",
  "rustls-native-certs",
- "tokio 1.15.0",
+ "tokio 1.16.1",
  "tokio-rustls",
  "webpki",
 ]
@@ -3368,7 +3354,7 @@
 checksum = "ae8ab7f67bad3240049cb24fb9cb0b4c2c6af4c245840917fbbdededeee91179"
 dependencies = [
  "async-io",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-lite",
  "if-addrs",
  "ipnet",
@@ -3406,9 +3392,9 @@
 
 [[package]]
 name = "impl-trait-for-tuples"
-version = "0.2.1"
+version = "0.2.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee"
+checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -3422,7 +3408,7 @@
 checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"
 dependencies = [
  "autocfg",
- "hashbrown",
+ "hashbrown 0.11.2",
  "serde",
 ]
 
@@ -3524,9 +3510,9 @@
 
 [[package]]
 name = "js-sys"
-version = "0.3.55"
+version = "0.3.56"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7cc9ffccd38c451a86bf13657df244e9c3f37493cce8e5e21e940963777acc84"
+checksum = "a38fc24e30fd564ce974c02bf1d337caddff65be6cc4735a1f7eab22a7440f04"
 dependencies = [
  "wasm-bindgen",
 ]
@@ -3538,7 +3524,7 @@
 checksum = "d2b99d4207e2a04fb4581746903c2bb7eb376f88de9c699d0f3e10feeac0cd3a"
 dependencies = [
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-pubsub",
  "log",
@@ -3553,7 +3539,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "14f7f76aef2d054868398427f6c54943cf3d1caa9a7ec7d0c38d69df97a965eb"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-executor",
  "futures-util",
  "log",
@@ -3568,7 +3554,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "b51da17abecbdab3e3d4f26b01c5ec075e88d3abe3ab3b05dc9aa69392764ec0"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-client-transports",
 ]
 
@@ -3590,7 +3576,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "e1dea6e07251d9ce6a552abfb5d7ad6bc290a4596c8dcc3d795fae2bbdc1f3ff"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "hyper",
  "jsonrpc-core",
  "jsonrpc-server-utils",
@@ -3606,7 +3592,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "382bb0206323ca7cda3dcd7e245cea86d37d02457a02a975e3378fb149a48845"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-server-utils",
  "log",
@@ -3621,7 +3607,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "240f87695e6c6f62fb37f05c02c04953cf68d6408b8c1c89de85c7a0125b1011"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "lazy_static",
  "log",
@@ -3637,12 +3623,12 @@
 checksum = "fa4fdea130485b572c39a460d50888beb00afb3e35de23ccd7fad8ff19f0e0d4"
 dependencies = [
  "bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
  "globset",
  "jsonrpc-core",
  "lazy_static",
  "log",
- "tokio 1.15.0",
+ "tokio 1.16.1",
  "tokio-stream",
  "tokio-util",
  "unicase",
@@ -3654,7 +3640,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "f892c7d766369475ab7b0669f417906302d7c0fb521285c0a0c92e52e7c8e946"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-server-utils",
  "log",
@@ -3727,7 +3713,7 @@
  "arrayvec 0.7.2",
  "async-trait",
  "fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
  "http",
  "jsonrpsee-types",
  "log",
@@ -3737,7 +3723,7 @@
  "serde_json",
  "soketto",
  "thiserror",
- "tokio 1.15.0",
+ "tokio 1.16.1",
  "tokio-rustls",
  "tokio-util",
 ]
@@ -3761,7 +3747,7 @@
 [[package]]
 name = "kusama-runtime"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "beefy-primitives",
  "bitvec",
@@ -3849,7 +3835,7 @@
 [[package]]
 name = "kusama-runtime-constants"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-support",
  "polkadot-primitives",
@@ -3920,9 +3906,9 @@
 
 [[package]]
 name = "libc"
-version = "0.2.112"
+version = "0.2.117"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"
+checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c"
 
 [[package]]
 name = "libloading"
@@ -3946,9 +3932,9 @@
 
 [[package]]
 name = "libm"
-version = "0.2.1"
+version = "0.2.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a"
+checksum = "33a33a362ce288760ec6a508b94caaec573ae7d3bbbd91b87aa0bad4456839db"
 
 [[package]]
 name = "libp2p"
@@ -3958,7 +3944,7 @@
 dependencies = [
  "atomic",
  "bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
  "lazy_static",
  "libp2p-core",
  "libp2p-deflate",
@@ -3993,17 +3979,18 @@
 
 [[package]]
 name = "libp2p-core"
-version = "0.30.0"
+version = "0.30.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bef22d9bba1e8bcb7ec300073e6802943fe8abb8190431842262b5f1c30abba1"
+checksum = "86aad7d54df283db817becded03e611137698a6509d4237a96881976a162340c"
 dependencies = [
  "asn1_der",
  "bs58",
  "ed25519-dalek",
  "either",
  "fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
+ "instant",
  "lazy_static",
  "libsecp256k1 0.7.0",
  "log",
@@ -4032,7 +4019,7 @@
 checksum = "51a800adb195f33de63f4b17b63fe64cfc23bf2c6a0d3d0d5321328664e65197"
 dependencies = [
  "flate2",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
 ]
 
@@ -4043,7 +4030,7 @@
 checksum = "bb8f89d15cb6e3c5bc22afff7513b11bab7856f2872d3cfba86f7f63a06bc498"
 dependencies = [
  "async-std-resolver",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "log",
  "smallvec",
@@ -4058,7 +4045,7 @@
 dependencies = [
  "cuckoofilter",
  "fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "libp2p-swarm",
  "log",
@@ -4079,7 +4066,7 @@
  "byteorder",
  "bytes 1.1.0",
  "fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
  "hex_fmt",
  "libp2p-core",
  "libp2p-swarm",
@@ -4100,7 +4087,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "cca1275574183f288ff8b72d535d5ffa5ea9292ef7829af8b47dcb197c7b0dcd"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "libp2p-swarm",
  "log",
@@ -4122,7 +4109,7 @@
  "bytes 1.1.0",
  "either",
  "fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "libp2p-swarm",
  "log",
@@ -4146,7 +4133,7 @@
  "async-io",
  "data-encoding",
  "dns-parser",
- "futures 0.3.19",
+ "futures 0.3.21",
  "if-watch",
  "lazy_static",
  "libp2p-core",
@@ -4154,7 +4141,7 @@
  "log",
  "rand 0.8.4",
  "smallvec",
- "socket2 0.4.2",
+ "socket2 0.4.4",
  "void",
 ]
 
@@ -4180,7 +4167,7 @@
 dependencies = [
  "asynchronous-codec 0.6.0",
  "bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "log",
  "nohash-hasher",
@@ -4198,7 +4185,7 @@
 dependencies = [
  "bytes 1.1.0",
  "curve25519-dalek 3.2.0",
- "futures 0.3.19",
+ "futures 0.3.21",
  "lazy_static",
  "libp2p-core",
  "log",
@@ -4218,7 +4205,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "80ef7b0ec5cf06530d9eb6cf59ae49d46a2c45663bde31c25a12f682664adbcf"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "libp2p-swarm",
  "log",
@@ -4235,7 +4222,7 @@
 dependencies = [
  "asynchronous-codec 0.6.0",
  "bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "log",
  "prost",
@@ -4250,7 +4237,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "0f1a458bbda880107b5b36fcb9b5a1ef0c329685da0e203ed692a8ebe64cc92c"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "pin-project 1.0.10",
  "rand 0.7.3",
@@ -4266,7 +4253,7 @@
 dependencies = [
  "asynchronous-codec 0.6.0",
  "bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "libp2p-core",
  "libp2p-swarm",
@@ -4289,7 +4276,7 @@
 dependencies = [
  "asynchronous-codec 0.6.0",
  "bimap",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "libp2p-swarm",
  "log",
@@ -4311,7 +4298,7 @@
 dependencies = [
  "async-trait",
  "bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "libp2p-swarm",
  "log",
@@ -4329,7 +4316,7 @@
 checksum = "3f5184a508f223bc100a12665517773fb8730e9f36fc09eefb670bf01b107ae9"
 dependencies = [
  "either",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "log",
  "rand 0.7.3",
@@ -4355,14 +4342,14 @@
 checksum = "7399c5b6361ef525d41c11fcf51635724f832baf5819b30d3d873eabb4fbae4b"
 dependencies = [
  "async-io",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "if-watch",
  "ipnet",
  "libc",
  "libp2p-core",
  "log",
- "socket2 0.4.2",
+ "socket2 0.4.4",
 ]
 
 [[package]]
@@ -4372,7 +4359,7 @@
 checksum = "b8b7563e46218165dfd60f64b96f7ce84590d75f53ecbdc74a7dd01450dc5973"
 dependencies = [
  "async-std",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "log",
 ]
@@ -4383,7 +4370,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "1008a302b73c5020251f9708c653f5ed08368e530e247cc9cd2f109ff30042cf"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "js-sys",
  "libp2p-core",
  "parity-send-wrapper",
@@ -4398,7 +4385,7 @@
 checksum = "22e12df82d1ed64969371a9e65ea92b91064658604cc2576c2757f18ead9a1cf"
 dependencies = [
  "either",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-rustls",
  "libp2p-core",
  "log",
@@ -4415,7 +4402,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "4e7362abb8867d7187e7e93df17f460d554c997fc5c8ac57dc1259057f6889af"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p-core",
  "parking_lot 0.11.2",
  "thiserror",
@@ -4551,9 +4538,9 @@
 
 [[package]]
 name = "lock_api"
-version = "0.4.5"
+version = "0.4.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "712a4d093c9976e24e7dbca41db895dabcbac38eb5f4045393d17a95bdfb1109"
+checksum = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
 dependencies = [
  "scopeguard",
 ]
@@ -4574,7 +4561,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "7ea2d928b485416e8908cff2d97d621db22b27f7b3b6729e438bcf42c671ba91"
 dependencies = [
- "hashbrown",
+ "hashbrown 0.11.2",
 ]
 
 [[package]]
@@ -4583,7 +4570,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "274353858935c992b13c0ca408752e2121da852d07dec7ce5f108c77dfa14d1f"
 dependencies = [
- "hashbrown",
+ "hashbrown 0.11.2",
 ]
 
 [[package]]
@@ -4700,7 +4687,7 @@
 checksum = "d505169b746dacf02f7d14d8c80b34edfd8212159c63d23c977739a0d960c626"
 dependencies = [
  "hash-db",
- "hashbrown",
+ "hashbrown 0.11.2",
  "parity-util-mem",
 ]
 
@@ -4734,10 +4721,10 @@
 [[package]]
 name = "metered-channel"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "thiserror",
  "tracing",
@@ -4749,7 +4736,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "fd2c2cc134e57461f0898b0e921f0a7819b5e3f3a4335b9aa390ce81a5f36fb9"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "rand 0.8.4",
  "thrift",
 ]
@@ -4927,7 +4914,7 @@
 checksum = "56a336acba8bc87c8876f6425407dbbe6c417bf478b22015f8fb0994ef3bc0ab"
 dependencies = [
  "bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "pin-project 1.0.10",
  "smallvec",
@@ -5362,7 +5349,7 @@
 [[package]]
 name = "pallet-bridge-dispatch"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bp-message-dispatch",
  "bp-runtime",
@@ -5379,7 +5366,7 @@
 [[package]]
 name = "pallet-bridge-grandpa"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bp-header-chain",
  "bp-runtime",
@@ -5401,7 +5388,7 @@
 [[package]]
 name = "pallet-bridge-messages"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bitvec",
  "bp-message-dispatch",
@@ -6336,7 +6323,7 @@
 [[package]]
 name = "pallet-xcm"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -6354,7 +6341,7 @@
 [[package]]
 name = "pallet-xcm-benchmarks"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -6383,9 +6370,9 @@
 
 [[package]]
 name = "parity-db"
-version = "0.3.5"
+version = "0.3.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78a95abf24f1097c6e3181abbbbfc3630b3b5e681470940f719b69acb4911c7f"
+checksum = "68de01cff53da5574397233383dd7f5c15ee958c348245765ea8cb09f2571e6b"
 dependencies = [
  "blake2-rfc",
  "crc32fast",
@@ -6438,11 +6425,11 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "9981e32fb75e004cc148f5fb70342f393830e0a4aa62e3cc93b50976218d42b6"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "libc",
  "log",
  "rand 0.7.3",
- "tokio 1.15.0",
+ "tokio 1.16.1",
  "winapi 0.3.9",
 ]
 
@@ -6454,7 +6441,7 @@
 dependencies = [
  "cfg-if 1.0.0",
  "ethereum-types",
- "hashbrown",
+ "hashbrown 0.11.2",
  "impl-trait-for-tuples",
  "lru 0.6.6",
  "parity-util-mem-derive",
@@ -6531,7 +6518,7 @@
 checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
 dependencies = [
  "instant",
- "lock_api 0.4.5",
+ "lock_api 0.4.6",
  "parking_lot_core 0.8.5",
 ]
 
@@ -6731,9 +6718,9 @@
 [[package]]
 name = "polkadot-approval-distribution"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "polkadot-node-network-protocol",
  "polkadot-node-primitives",
  "polkadot-node-subsystem",
@@ -6745,9 +6732,9 @@
 [[package]]
 name = "polkadot-availability-bitfield-distribution"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "polkadot-node-network-protocol",
  "polkadot-node-subsystem",
  "polkadot-node-subsystem-util",
@@ -6758,10 +6745,10 @@
 [[package]]
 name = "polkadot-availability-distribution"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "lru 0.7.2",
  "parity-scale-codec",
  "polkadot-erasure-coding",
@@ -6780,9 +6767,9 @@
 [[package]]
 name = "polkadot-availability-recovery"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "lru 0.7.2",
  "parity-scale-codec",
  "polkadot-erasure-coding",
@@ -6800,10 +6787,10 @@
 [[package]]
 name = "polkadot-cli"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-benchmarking-cli",
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "polkadot-node-core-pvf",
  "polkadot-node-metrics",
@@ -6823,7 +6810,7 @@
 [[package]]
 name = "polkadot-client"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "beefy-primitives",
  "frame-benchmarking",
@@ -6853,11 +6840,11 @@
 [[package]]
 name = "polkadot-collator-protocol"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "always-assert",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "polkadot-node-network-protocol",
  "polkadot-node-primitives",
@@ -6874,7 +6861,7 @@
 [[package]]
 name = "polkadot-core-primitives"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "parity-scale-codec",
  "parity-util-mem",
@@ -6887,10 +6874,10 @@
 [[package]]
 name = "polkadot-dispute-distribution"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "lru 0.7.2",
  "parity-scale-codec",
  "polkadot-erasure-coding",
@@ -6909,7 +6896,7 @@
 [[package]]
 name = "polkadot-erasure-coding"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "parity-scale-codec",
  "polkadot-node-primitives",
@@ -6923,9 +6910,9 @@
 [[package]]
 name = "polkadot-gossip-support"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "polkadot-node-network-protocol",
  "polkadot-node-subsystem",
@@ -6943,10 +6930,10 @@
 [[package]]
 name = "polkadot-network-bridge"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
  "parity-scale-codec",
  "parking_lot 0.11.2",
  "polkadot-node-network-protocol",
@@ -6962,9 +6949,9 @@
 [[package]]
 name = "polkadot-node-collation-generation"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "parity-scale-codec",
  "polkadot-erasure-coding",
  "polkadot-node-primitives",
@@ -6980,11 +6967,11 @@
 [[package]]
 name = "polkadot-node-core-approval-voting"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bitvec",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "kvdb",
  "lru 0.7.2",
@@ -7008,10 +6995,10 @@
 [[package]]
 name = "polkadot-node-core-av-store"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bitvec",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "kvdb",
  "parity-scale-codec",
@@ -7028,10 +7015,10 @@
 [[package]]
 name = "polkadot-node-core-backing"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bitvec",
- "futures 0.3.19",
+ "futures 0.3.21",
  "polkadot-erasure-coding",
  "polkadot-node-primitives",
  "polkadot-node-subsystem",
@@ -7046,9 +7033,9 @@
 [[package]]
 name = "polkadot-node-core-bitfield-signing"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "polkadot-node-subsystem",
  "polkadot-node-subsystem-util",
  "polkadot-primitives",
@@ -7061,10 +7048,10 @@
 [[package]]
 name = "polkadot-node-core-candidate-validation"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
  "parity-scale-codec",
  "polkadot-node-core-pvf",
  "polkadot-node-primitives",
@@ -7079,9 +7066,9 @@
 [[package]]
 name = "polkadot-node-core-chain-api"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "polkadot-node-subsystem",
  "polkadot-node-subsystem-util",
  "polkadot-primitives",
@@ -7094,9 +7081,9 @@
 [[package]]
 name = "polkadot-node-core-chain-selection"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "kvdb",
  "parity-scale-codec",
@@ -7111,9 +7098,9 @@
 [[package]]
 name = "polkadot-node-core-dispute-coordinator"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "kvdb",
  "lru 0.7.2",
  "parity-scale-codec",
@@ -7129,10 +7116,10 @@
 [[package]]
 name = "polkadot-node-core-parachains-inherent"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "polkadot-node-subsystem",
  "polkadot-primitives",
@@ -7146,10 +7133,10 @@
 [[package]]
 name = "polkadot-node-core-provisioner"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bitvec",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "polkadot-node-primitives",
  "polkadot-node-subsystem",
@@ -7163,13 +7150,13 @@
 [[package]]
 name = "polkadot-node-core-pvf"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "always-assert",
  "assert_matches",
  "async-process",
  "async-std",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "parity-scale-codec",
  "pin-project 1.0.10",
@@ -7193,9 +7180,9 @@
 [[package]]
 name = "polkadot-node-core-pvf-checker"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "polkadot-node-primitives",
  "polkadot-node-subsystem",
  "polkadot-node-subsystem-util",
@@ -7209,9 +7196,9 @@
 [[package]]
 name = "polkadot-node-core-runtime-api"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "memory-lru",
  "parity-util-mem",
  "polkadot-node-subsystem",
@@ -7227,7 +7214,7 @@
 [[package]]
 name = "polkadot-node-jaeger"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "async-std",
  "lazy_static",
@@ -7245,10 +7232,10 @@
 [[package]]
 name = "polkadot-node-metrics"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bs58",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "log",
  "metered-channel",
@@ -7264,11 +7251,11 @@
 [[package]]
 name = "polkadot-node-network-protocol"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "async-trait",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "parity-scale-codec",
  "polkadot-node-jaeger",
  "polkadot-node-primitives",
@@ -7282,10 +7269,10 @@
 [[package]]
 name = "polkadot-node-primitives"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bounded-vec",
- "futures 0.3.19",
+ "futures 0.3.21",
  "parity-scale-codec",
  "polkadot-parachain",
  "polkadot-primitives",
@@ -7304,7 +7291,7 @@
 [[package]]
 name = "polkadot-node-subsystem"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "polkadot-node-jaeger",
  "polkadot-node-subsystem-types",
@@ -7314,10 +7301,10 @@
 [[package]]
 name = "polkadot-node-subsystem-types"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "polkadot-node-jaeger",
  "polkadot-node-network-protocol",
  "polkadot-node-primitives",
@@ -7333,11 +7320,11 @@
 [[package]]
 name = "polkadot-node-subsystem-util"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "async-trait",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "itertools",
  "lru 0.7.2",
  "metered-channel",
@@ -7361,9 +7348,9 @@
 [[package]]
 name = "polkadot-overseer"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "lru 0.7.2",
  "parity-util-mem",
@@ -7382,10 +7369,10 @@
 [[package]]
 name = "polkadot-overseer-gen"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "metered-channel",
  "pin-project 1.0.10",
@@ -7399,7 +7386,7 @@
 [[package]]
 name = "polkadot-overseer-gen-proc-macro"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "proc-macro-crate 1.1.0",
  "proc-macro2",
@@ -7410,7 +7397,7 @@
 [[package]]
 name = "polkadot-parachain"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "derive_more",
  "frame-support",
@@ -7427,9 +7414,9 @@
 [[package]]
 name = "polkadot-performance-test"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
- "env_logger 0.9.0",
+ "env_logger",
  "kusama-runtime",
  "log",
  "polkadot-erasure-coding",
@@ -7442,7 +7429,7 @@
 [[package]]
 name = "polkadot-primitives"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bitvec",
  "frame-system",
@@ -7472,7 +7459,7 @@
 [[package]]
 name = "polkadot-rpc"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "beefy-gadget",
  "beefy-gadget-rpc",
@@ -7503,7 +7490,7 @@
 [[package]]
 name = "polkadot-runtime"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "beefy-primitives",
  "bitvec",
@@ -7587,7 +7574,7 @@
 [[package]]
 name = "polkadot-runtime-common"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "beefy-primitives",
  "bitvec",
@@ -7634,7 +7621,7 @@
 [[package]]
 name = "polkadot-runtime-constants"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-support",
  "polkadot-primitives",
@@ -7646,7 +7633,7 @@
 [[package]]
 name = "polkadot-runtime-metrics"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bs58",
  "parity-scale-codec",
@@ -7658,7 +7645,7 @@
 [[package]]
 name = "polkadot-runtime-parachains"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "bitflags",
  "bitvec",
@@ -7699,13 +7686,13 @@
 [[package]]
 name = "polkadot-service"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "async-trait",
  "beefy-gadget",
  "beefy-primitives",
  "frame-system-rpc-runtime-api",
- "futures 0.3.19",
+ "futures 0.3.21",
  "hex-literal",
  "kusama-runtime",
  "kvdb",
@@ -7799,11 +7786,11 @@
 [[package]]
 name = "polkadot-statement-distribution"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "arrayvec 0.5.2",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "indexmap",
  "parity-scale-codec",
  "polkadot-node-network-protocol",
@@ -7820,7 +7807,7 @@
 [[package]]
 name = "polkadot-statement-table"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "parity-scale-codec",
  "polkadot-primitives",
@@ -7830,7 +7817,7 @@
 [[package]]
 name = "polkadot-test-runtime"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "beefy-primitives",
  "bitvec",
@@ -7892,12 +7879,12 @@
 [[package]]
 name = "polkadot-test-service"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-benchmarking",
  "frame-system",
  "futures 0.1.31",
- "futures 0.3.19",
+ "futures 0.3.21",
  "hex",
  "pallet-balances",
  "pallet-staking",
@@ -7939,7 +7926,7 @@
  "substrate-test-client",
  "tempfile",
  "test-runtime-constants",
- "tokio 1.15.0",
+ "tokio 1.16.1",
  "tracing",
 ]
 
@@ -8164,9 +8151,9 @@
 
 [[package]]
 name = "quote"
-version = "1.0.14"
+version = "1.0.15"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "47aa80447ce4daf1717500037052af176af5d38cc3e571d9ec1c7353fc10c87d"
+checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"
 dependencies = [
  "proc-macro2",
 ]
@@ -8421,7 +8408,7 @@
 version = "0.10.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "env_logger 0.9.0",
+ "env_logger",
  "jsonrpsee",
  "log",
  "parity-scale-codec",
@@ -8454,9 +8441,9 @@
 
 [[package]]
 name = "retain_mut"
-version = "0.1.5"
+version = "0.1.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11000e6ba5020e53e7cc26f73b91ae7d5496b4977851479edb66b694c0675c21"
+checksum = "51dd4445360338dab5116712bee1388dc727991d51969558a8882ab552e6db30"
 
 [[package]]
 name = "ring"
@@ -8507,7 +8494,7 @@
 [[package]]
 name = "rococo-runtime"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "beefy-primitives",
  "bp-messages",
@@ -8582,7 +8569,7 @@
 [[package]]
 name = "rococo-runtime-constants"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-support",
  "polkadot-primitives",
@@ -8643,7 +8630,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
 dependencies = [
- "semver 1.0.4",
+ "semver 1.0.5",
 ]
 
 [[package]]
@@ -8697,7 +8684,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "pin-project 0.4.29",
  "static_assertions",
 ]
@@ -8753,7 +8740,7 @@
 dependencies = [
  "async-trait",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "ip_network",
  "libp2p",
@@ -8778,7 +8765,7 @@
 version = "0.10.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "log",
  "parity-scale-codec",
@@ -8847,7 +8834,7 @@
 dependencies = [
  "chrono",
  "fdlimit",
- "futures 0.3.19",
+ "futures 0.3.21",
  "hex",
  "libp2p",
  "log",
@@ -8875,7 +8862,7 @@
  "structopt",
  "thiserror",
  "tiny-bip39",
- "tokio 1.15.0",
+ "tokio 1.16.1",
 ]
 
 [[package]]
@@ -8884,7 +8871,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
  "hash-db",
  "log",
  "parity-scale-codec",
@@ -8937,7 +8924,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "libp2p",
  "log",
@@ -8962,7 +8949,7 @@
 dependencies = [
  "async-trait",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "parity-scale-codec",
  "sc-block-builder",
@@ -8992,7 +8979,7 @@
  "async-trait",
  "derive_more",
  "fork-tree",
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "merlin",
  "num-bigint",
@@ -9033,7 +9020,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-core-client",
  "jsonrpc-derive",
@@ -9070,7 +9057,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "log",
  "parity-scale-codec",
@@ -9190,7 +9177,7 @@
  "dyn-clone",
  "finality-grandpa",
  "fork-tree",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "log",
  "parity-scale-codec",
@@ -9225,7 +9212,7 @@
 dependencies = [
  "derive_more",
  "finality-grandpa",
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-core-client",
  "jsonrpc-derive",
@@ -9248,7 +9235,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "ansi_term",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "log",
  "parity-util-mem",
@@ -9289,7 +9276,7 @@
  "either",
  "fnv",
  "fork-tree",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "hex",
  "ip_network",
@@ -9330,7 +9317,7 @@
 version = "0.10.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "libp2p",
  "log",
@@ -9348,7 +9335,7 @@
 dependencies = [
  "bytes 1.1.0",
  "fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "hex",
  "hyper",
@@ -9374,7 +9361,7 @@
 version = "4.0.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p",
  "log",
  "sc-utils",
@@ -9396,7 +9383,7 @@
 version = "4.0.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "hash-db",
  "jsonrpc-core",
  "jsonrpc-pubsub",
@@ -9427,7 +9414,7 @@
 version = "0.10.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-core-client",
  "jsonrpc-derive",
@@ -9452,7 +9439,7 @@
 version = "4.0.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-http-server",
  "jsonrpc-ipc-server",
@@ -9461,7 +9448,7 @@
  "log",
  "serde_json",
  "substrate-prometheus-endpoint",
- "tokio 1.15.0",
+ "tokio 1.16.1",
 ]
 
 [[package]]
@@ -9472,7 +9459,7 @@
  "async-trait",
  "directories",
  "exit-future",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "hash-db",
  "jsonrpc-core",
@@ -9523,7 +9510,7 @@
  "substrate-prometheus-endpoint",
  "tempfile",
  "thiserror",
- "tokio 1.15.0",
+ "tokio 1.16.1",
  "tracing",
  "tracing-futures",
 ]
@@ -9570,7 +9557,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "chrono",
- "futures 0.3.19",
+ "futures 0.3.21",
  "libp2p",
  "log",
  "parking_lot 0.11.2",
@@ -9629,7 +9616,7 @@
 version = "4.0.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "linked-hash-map",
  "log",
@@ -9657,7 +9644,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "serde",
  "sp-blockchain",
@@ -9670,7 +9657,7 @@
 version = "4.0.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "lazy_static",
  "parking_lot 0.11.2",
@@ -9764,9 +9751,9 @@
 
 [[package]]
 name = "security-framework"
-version = "2.5.0"
+version = "2.6.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d09d3c15d814eda1d6a836f2f2b56a6abc1446c8a34351cb3180d3db92ffe4ce"
+checksum = "2dc14f172faf8a0194a3aded622712b0de276821addc574fa54fc0a1167e10dc"
 dependencies = [
  "bitflags",
  "core-foundation",
@@ -9777,9 +9764,9 @@
 
 [[package]]
 name = "security-framework-sys"
-version = "2.5.0"
+version = "2.6.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e90dd10c41c6bfc633da6e0c659bd25d31e0791e5974ac42970267d59eba87f7"
+checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556"
 dependencies = [
  "core-foundation-sys",
  "libc",
@@ -9814,9 +9801,9 @@
 
 [[package]]
 name = "semver"
-version = "1.0.4"
+version = "1.0.5"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012"
+checksum = "0486718e92ec9a68fbed73bb5ef687d71103b142595b406835649bebd33f72c7"
 dependencies = [
  "serde",
 ]
@@ -9838,18 +9825,18 @@
 
 [[package]]
 name = "serde"
-version = "1.0.133"
+version = "1.0.136"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97565067517b60e2d1ea8b268e59ce036de907ac523ad83a0475da04e818989a"
+checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789"
 dependencies = [
  "serde_derive",
 ]
 
 [[package]]
 name = "serde_derive"
-version = "1.0.133"
+version = "1.0.136"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed201699328568d8d08208fdd080e3ff594e6c422e438b6705905da01005d537"
+checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -9858,9 +9845,9 @@
 
 [[package]]
 name = "serde_json"
-version = "1.0.75"
+version = "1.0.78"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c059c05b48c5c0067d4b4b2b4f0732dd65feb52daf7e0ea09cd87e7dadc1af79"
+checksum = "d23c1ba4cf0efd44be32017709280b32d1cea5c3f1275c3b6d9e8bc54f758085"
 dependencies = [
  "itoa 1.0.1",
  "ryu",
@@ -10014,7 +10001,7 @@
 [[package]]
 name = "slot-range-helper"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "enumn",
  "parity-scale-codec",
@@ -10075,9 +10062,9 @@
 
 [[package]]
 name = "socket2"
-version = "0.4.2"
+version = "0.4.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5dc90fe6c7be1a323296982db1836d1ea9e47b6839496dde9a541bc496df3516"
+checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0"
 dependencies = [
  "libc",
  "winapi 0.3.9",
@@ -10092,7 +10079,7 @@
  "base64",
  "bytes 1.1.0",
  "flate2",
- "futures 0.3.19",
+ "futures 0.3.21",
  "httparse",
  "log",
  "rand 0.8.4",
@@ -10198,7 +10185,7 @@
 version = "4.0.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "lru 0.7.2",
  "parity-scale-codec",
@@ -10217,7 +10204,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
  "futures-timer",
  "log",
  "parity-scale-codec",
@@ -10306,7 +10293,7 @@
  "byteorder",
  "dyn-clonable",
  "ed25519-dalek",
- "futures 0.3.19",
+ "futures 0.3.21",
  "hash-db",
  "hash256-std-hasher",
  "hex",
@@ -10434,7 +10421,7 @@
 version = "4.0.0"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "hash-db",
  "libsecp256k1 0.7.0",
  "log",
@@ -10471,7 +10458,7 @@
 dependencies = [
  "async-trait",
  "derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
  "merlin",
  "parity-scale-codec",
  "parking_lot 0.11.2",
@@ -10801,9 +10788,9 @@
 
 [[package]]
 name = "ss58-registry"
-version = "1.11.0"
+version = "1.12.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1230685dc82f8699110640244d361a7099c602f08bddc5c90765a5153b4881dc"
+checksum = "8319f44e20b42e5c11b88b1ad4130c35fe2974665a007b08b02322070177136a"
 dependencies = [
  "Inflector",
  "proc-macro2",
@@ -10969,7 +10956,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "frame-system-rpc-runtime-api",
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-core-client",
  "jsonrpc-derive",
@@ -10996,7 +10983,7 @@
  "hyper",
  "log",
  "prometheus",
- "tokio 1.15.0",
+ "tokio 1.16.1",
 ]
 
 [[package]]
@@ -11005,7 +10992,7 @@
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
  "async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
  "hex",
  "parity-scale-codec",
  "sc-client-api",
@@ -11030,9 +11017,9 @@
 version = "4.0.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "substrate-test-utils-derive",
- "tokio 1.15.0",
+ "tokio 1.16.1",
 ]
 
 [[package]]
@@ -11075,9 +11062,9 @@
 
 [[package]]
 name = "syn"
-version = "1.0.85"
+version = "1.0.86"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a684ac3dcd8913827e18cd09a68384ee66c1de24157e3c556c9ab16d85695fb7"
+checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -11104,9 +11091,9 @@
 
 [[package]]
 name = "target-lexicon"
-version = "0.12.2"
+version = "0.12.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff"
+checksum = "d7fa7e55043acb85fca6b3c01485a2eeb6b69c5d21002e273c79e465f43b7ac1"
 
 [[package]]
 name = "tempfile"
@@ -11134,7 +11121,7 @@
 [[package]]
 name = "test-runtime-constants"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-support",
  "polkadot-primitives",
@@ -11174,9 +11161,9 @@
 
 [[package]]
 name = "thread_local"
-version = "1.1.3"
+version = "1.1.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd"
+checksum = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180"
 dependencies = [
  "once_cell",
 ]
@@ -11271,9 +11258,9 @@
 
 [[package]]
 name = "tokio"
-version = "1.15.0"
+version = "1.16.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fbbf1c778ec206785635ce8ad57fe52b3009ae9e0c9f574a728f3049d3e55838"
+checksum = "0c27a64b625de6d309e8c57716ba93021dccf1b3b5c97edd6d3dd2d2135afc0a"
 dependencies = [
  "bytes 1.1.0",
  "libc",
@@ -11316,7 +11303,7 @@
 checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6"
 dependencies = [
  "rustls",
- "tokio 1.15.0",
+ "tokio 1.16.1",
  "webpki",
 ]
 
@@ -11328,7 +11315,7 @@
 dependencies = [
  "futures-core",
  "pin-project-lite 0.2.8",
- "tokio 1.15.0",
+ "tokio 1.16.1",
 ]
 
 [[package]]
@@ -11343,7 +11330,7 @@
  "futures-sink",
  "log",
  "pin-project-lite 0.2.8",
- "tokio 1.15.0",
+ "tokio 1.16.1",
 ]
 
 [[package]]
@@ -11363,9 +11350,9 @@
 
 [[package]]
 name = "tracing"
-version = "0.1.29"
+version = "0.1.30"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "375a639232caf30edfc78e8d89b2d4c375515393e7af7e16f01cd96917fb2105"
+checksum = "2d8d93354fe2a8e50d5953f5ae2e47a3fc2ef03292e7ea46e3cc38f549525fb9"
 dependencies = [
  "cfg-if 1.0.0",
  "pin-project-lite 0.2.8",
@@ -11375,9 +11362,9 @@
 
 [[package]]
 name = "tracing-attributes"
-version = "0.1.18"
+version = "0.1.19"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f4f480b8f81512e825f337ad51e94c1eb5d3bbdf2b363dcd01e2b19a9ffe3f8e"
+checksum = "8276d9a4a3a558d7b7ad5303ad50b53d58264641b82914b7ada36bd762e7a716"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -11386,11 +11373,12 @@
 
 [[package]]
 name = "tracing-core"
-version = "0.1.21"
+version = "0.1.22"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f4ed65637b8390770814083d20756f87bfa2c21bf2f110babdc5438351746e4"
+checksum = "03cfcb51380632a72d3111cb8d3447a8d908e577d31beeac006f836383d29a23"
 dependencies = [
  "lazy_static",
+ "valuable",
 ]
 
 [[package]]
@@ -11416,9 +11404,9 @@
 
 [[package]]
 name = "tracing-serde"
-version = "0.1.2"
+version = "0.1.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fb65ea441fbb84f9f6748fd496cf7f63ec9af5bca94dd86456978d055e8eb28b"
+checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1"
 dependencies = [
  "serde",
  "tracing-core",
@@ -11449,12 +11437,12 @@
 
 [[package]]
 name = "trie-db"
-version = "0.23.0"
+version = "0.23.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3ddae50680c12ef75bfbf58416ca6622fa43d879553f6cb2ed1a817346e1ffe"
+checksum = "d32d034c0d3db64b43c31de38e945f15b40cd4ca6d2dcfc26d4798ce8de4ab83"
 dependencies = [
  "hash-db",
- "hashbrown",
+ "hashbrown 0.12.0",
  "log",
  "rustc-hex",
  "smallvec",
@@ -11481,9 +11469,9 @@
 
 [[package]]
 name = "trust-dns-proto"
-version = "0.20.3"
+version = "0.20.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ad0d7f5db438199a6e2609debe3f69f808d074e0a2888ee0bccb45fe234d03f4"
+checksum = "ca94d4e9feb6a181c690c4040d7a24ef34018d8313ac5044a61d21222ae24e31"
 dependencies = [
  "async-trait",
  "cfg-if 1.0.0",
@@ -11505,9 +11493,9 @@
 
 [[package]]
 name = "trust-dns-resolver"
-version = "0.20.3"
+version = "0.20.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6ad17b608a64bd0735e67bde16b0636f8aa8591f831a25d18443ed00a699770"
+checksum = "ecae383baad9995efaa34ce8e57d12c3f305e545887472a492b838f4b5cfb77a"
 dependencies = [
  "cfg-if 1.0.0",
  "futures-util",
@@ -11602,9 +11590,9 @@
 
 [[package]]
 name = "uint"
-version = "0.9.1"
+version = "0.9.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6470ab50f482bde894a037a57064480a246dbfdd5960bd65a44824693f08da5f"
+checksum = "12f03af7ccf01dd611cc450a0d10dbc9b745770d096473e2faf0ca6e2d66d1e0"
 dependencies = [
  "byteorder",
  "crunchy",
@@ -11638,9 +11626,9 @@
 
 [[package]]
 name = "unicode-segmentation"
-version = "1.8.0"
+version = "1.9.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b"
+checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99"
 
 [[package]]
 name = "unicode-width"
@@ -11677,7 +11665,7 @@
  "fp-rpc",
  "frame-benchmarking",
  "frame-benchmarking-cli",
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-pubsub",
  "log",
@@ -11741,7 +11729,7 @@
  "fc-rpc",
  "fc-rpc-core",
  "fp-rpc",
- "futures 0.3.19",
+ "futures 0.3.21",
  "jsonrpc-core",
  "jsonrpc-pubsub",
  "pallet-ethereum",
@@ -11966,6 +11954,12 @@
 ]
 
 [[package]]
+name = "valuable"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
+
+[[package]]
 name = "value-bag"
 version = "1.0.0-alpha.8"
 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -12040,9 +12034,9 @@
 
 [[package]]
 name = "wasm-bindgen"
-version = "0.2.78"
+version = "0.2.79"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "632f73e236b219150ea279196e54e610f5dbafa5d61786303d4da54f84e47fce"
+checksum = "25f1af7423d8588a3d840681122e72e6a24ddbcb3f0ec385cac0d12d24256c06"
 dependencies = [
  "cfg-if 1.0.0",
  "wasm-bindgen-macro",
@@ -12050,9 +12044,9 @@
 
 [[package]]
 name = "wasm-bindgen-backend"
-version = "0.2.78"
+version = "0.2.79"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a317bf8f9fba2476b4b2c85ef4c4af8ff39c3c7f0cdfeed4f82c34a880aa837b"
+checksum = "8b21c0df030f5a177f3cba22e9bc4322695ec43e7257d865302900290bcdedca"
 dependencies = [
  "bumpalo",
  "lazy_static",
@@ -12065,9 +12059,9 @@
 
 [[package]]
 name = "wasm-bindgen-futures"
-version = "0.4.28"
+version = "0.4.29"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e8d7523cb1f2a4c96c1317ca690031b714a51cc14e05f712446691f413f5d39"
+checksum = "2eb6ec270a31b1d3c7e266b999739109abce8b6c87e4b31fcfcd788b65267395"
 dependencies = [
  "cfg-if 1.0.0",
  "js-sys",
@@ -12077,9 +12071,9 @@
 
 [[package]]
 name = "wasm-bindgen-macro"
-version = "0.2.78"
+version = "0.2.79"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d56146e7c495528bf6587663bea13a8eb588d39b36b679d83972e1a2dbbdacf9"
+checksum = "2f4203d69e40a52ee523b2529a773d5ffc1dc0071801c87b3d270b471b80ed01"
 dependencies = [
  "quote",
  "wasm-bindgen-macro-support",
@@ -12087,9 +12081,9 @@
 
 [[package]]
 name = "wasm-bindgen-macro-support"
-version = "0.2.78"
+version = "0.2.79"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7803e0eea25835f8abdc585cd3021b3deb11543c6fe226dcd30b228857c5c5ab"
+checksum = "bfa8a30d46208db204854cadbb5d4baf5fcf8071ba5bf48190c3e59937962ebc"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -12100,9 +12094,9 @@
 
 [[package]]
 name = "wasm-bindgen-shared"
-version = "0.2.78"
+version = "0.2.79"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0237232789cf037d5480773fe568aac745bfe2afbc11a863e97901780a6b47cc"
+checksum = "3d958d035c4438e28c70e4321a2911302f10135ce78a9c7834c0cab4123d06a2"
 
 [[package]]
 name = "wasm-gc-api"
@@ -12130,7 +12124,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "js-sys",
  "parking_lot 0.11.2",
  "pin-utils",
@@ -12324,9 +12318,9 @@
 
 [[package]]
 name = "web-sys"
-version = "0.3.55"
+version = "0.3.56"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38eb105f1c59d9eaa6b5cdc92b859d85b926e82cb2e0945cd0c9259faa6fe9fb"
+checksum = "c060b319f29dd25724f09a2ba1418f142f539b2be99fbf4d2d5a8f7330afb8eb"
 dependencies = [
  "js-sys",
  "wasm-bindgen",
@@ -12363,7 +12357,7 @@
 [[package]]
 name = "westend-runtime"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "beefy-primitives",
  "bitvec",
@@ -12449,7 +12443,7 @@
 [[package]]
 name = "westend-runtime-constants"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-support",
  "polkadot-primitives",
@@ -12460,9 +12454,9 @@
 
 [[package]]
 name = "which"
-version = "4.2.2"
+version = "4.2.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea187a8ef279bc014ec368c27a920da2024d2a711109bfbe3440585d5cf27ad9"
+checksum = "2a5a7e487e921cf220206864a94a89b6c6905bfc19f1057fa26a4cb360e5c1d2"
 dependencies = [
  "either",
  "lazy_static",
@@ -12557,7 +12551,7 @@
 [[package]]
 name = "xcm"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "derivative",
  "impl-trait-for-tuples",
@@ -12570,7 +12564,7 @@
 [[package]]
 name = "xcm-builder"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -12590,7 +12584,7 @@
 [[package]]
 name = "xcm-executor"
 version = "0.9.16"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -12608,7 +12602,7 @@
 [[package]]
 name = "xcm-procedural"
 version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#6e3e9e60c2615f1cd715923aea9816ac6b9b59f7"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
 dependencies = [
  "Inflector",
  "proc-macro2",
@@ -12622,7 +12616,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "e7d9028f208dd5e63c614be69f115c1b53cacc1111437d4c765185856666c107"
 dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
  "log",
  "nohash-hasher",
  "parking_lot 0.11.2",
@@ -12638,9 +12632,9 @@
 
 [[package]]
 name = "zeroize"
-version = "1.5.0"
+version = "1.5.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc222aec311c323c717f56060324f32b82da1ce1dd81d9a09aa6a9030bfe08db"
+checksum = "7c88870063c39ee00ec285a2f8d6a966e5b6fb2becc4e8dac77ed0d370ed6006"
 dependencies = [
  "zeroize_derive",
 ]
modifiednode/cli/src/command.rsdiffbeforeafterboth
--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -40,6 +40,7 @@
 fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
 	Ok(match id {
 		"westend-local" => Box::new(chain_spec::local_testnet_westend_config()),
+		"rococo-local" => Box::new(chain_spec::local_testnet_rococo_config()),
 		"dev" => Box::new(chain_spec::development_config()),
 		"" | "local" => Box::new(chain_spec::local_testnet_rococo_config()),
 		path => Box::new(chain_spec::ChainSpec::from_json_file(
@@ -288,6 +289,7 @@
 				let block: Block = generate_genesis_block(&config.chain_spec, state_version)
 					.map_err(|e| format!("{:?}", e))?;
 				let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode()));
+				let genesis_hash = format!("0x{:?}", HexDisplay::from(&block.header().hash().0));
 
 				let polkadot_config = SubstrateCli::create_configuration(
 					&polkadot_cli,
@@ -299,6 +301,7 @@
 				info!("Parachain id: {:?}", id);
 				info!("Parachain Account: {}", parachain_account);
 				info!("Parachain genesis state: {}", genesis_state);
+				info!("Parachain genesis hash: {}", genesis_hash);
 				info!(
 					"Is collating: {}",
 					if config.role.is_authority() {
modifiednode/cli/src/service.rsdiffbeforeafterboth
--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -257,6 +257,9 @@
 	let params = new_partial::<BIQ>(&parachain_config, build_import_queue)?;
 	let (mut telemetry, filter_pool, frontier_backend, telemetry_worker_handle, fee_history_cache) =
 		params.other;
+
+	let client = params.client.clone();
+	let backend = params.backend.clone();
 	let mut task_manager = params.task_manager;
 
 	let (relay_chain_interface, collator_key) =
@@ -265,10 +268,8 @@
 				polkadot_service::Error::Sub(x) => x,
 				s => format!("{}", s).into(),
 			})?;
+
 	let block_announce_validator = BlockAnnounceValidator::new(relay_chain_interface.clone(), id);
-
-	let client = params.client.clone();
-	let backend = params.backend.clone();
 
 	let force_authoring = parachain_config.force_authoring;
 	let validator = parachain_config.role.is_authority();
@@ -293,7 +294,6 @@
 	let rpc_client = client.clone();
 	let rpc_pool = transaction_pool.clone();
 	let select_chain = params.select_chain.clone();
-	let is_authority = parachain_config.role.clone().is_authority();
 	let rpc_network = network.clone();
 
 	let rpc_frontier_backend = frontier_backend.clone();
@@ -317,7 +317,7 @@
 			filter_pool: filter_pool.clone(),
 			network: rpc_network.clone(),
 			select_chain: select_chain.clone(),
-			is_authority,
+			is_authority: validator,
 			// TODO: Unhardcode
 			max_past_logs: 10000,
 			block_data_cache: block_data_cache.clone(),
modifiedruntime/src/lib.rsdiffbeforeafterboth
before · runtime/src/lib.rs
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56//! The Substrate Node Template runtime. This can be compiled with `#[no_std]`, ready for Wasm.78#![cfg_attr(not(feature = "std"), no_std)]9// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.10#![recursion_limit = "1024"]11#![allow(clippy::from_over_into, clippy::identity_op)]12#![allow(clippy::fn_to_numeric_cast_with_truncation)]13// Make the WASM binary available.14#[cfg(feature = "std")]15include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));1617use sp_api::impl_runtime_apis;18use sp_core::{crypto::KeyTypeId, OpaqueMetadata, H256, U256, H160};19use sp_runtime::DispatchError;20// #[cfg(any(feature = "std", test))]21// pub use sp_runtime::BuildStorage;2223use sp_runtime::{24	Permill, Perbill, Percent, create_runtime_str, generic, impl_opaque_keys,25	traits::{26		AccountIdLookup, BlakeTwo256, Block as BlockT, IdentifyAccount, Verify, AccountIdConversion,27	},28	transaction_validity::{TransactionSource, TransactionValidity},29	ApplyExtrinsicResult, MultiSignature, RuntimeAppPublic,30};3132use sp_std::prelude::*;3334#[cfg(feature = "std")]35use sp_version::NativeVersion;36use sp_version::RuntimeVersion;37pub use pallet_transaction_payment::{38	Multiplier, TargetedFeeAdjustment, FeeDetails, RuntimeDispatchInfo,39};40// A few exports that help ease life for downstream crates.41pub use pallet_balances::Call as BalancesCall;42pub use pallet_evm::{EnsureAddressTruncated, HashedAddressMapping, Runner};43pub use frame_support::{44	construct_runtime, match_type,45	dispatch::DispatchResult,46	PalletId, parameter_types, StorageValue, ConsensusEngineId,47	traits::{48		Everything, Currency, ExistenceRequirement, Get, IsInVec, KeyOwnerProofSystem,49		LockIdentifier, OnUnbalanced, Randomness, FindAuthor,50	},51	weights::{52		constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},53		DispatchClass, DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight,54		WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients,55	},56};57use up_data_structs::*;58// use pallet_contracts::weights::WeightInfo;59// #[cfg(any(feature = "std", test))]60use frame_system::{61	self as frame_system, EnsureRoot, EnsureSigned,62	limits::{BlockWeights, BlockLength},63};64use sp_arithmetic::{65	traits::{BaseArithmetic, Unsigned},66};67use smallvec::smallvec;68use codec::{Encode, Decode};69use pallet_evm::{Account as EVMAccount, FeeCalculator, GasWeightMapping, OnMethodCall};70use fp_rpc::TransactionStatus;71use sp_core::crypto::Public;72use sp_runtime::{73	traits::{BlockNumberProvider, Dispatchable, PostDispatchInfoOf},74	transaction_validity::TransactionValidityError,75};7677// pub use pallet_timestamp::Call as TimestampCall;78pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;7980// Polkadot imports81use pallet_xcm::XcmPassthrough;82use polkadot_parachain::primitives::Sibling;83use xcm::v1::{BodyId, Junction::*, MultiLocation, NetworkId, Junctions::*};84use xcm_builder::{85	AccountId32Aliases, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, CurrencyAdapter,86	EnsureXcmOrigin, FixedWeightBounds, IsConcrete, LocationInverter, NativeAsset,87	ParentAsSuperuser, ParentIsDefault, RelayChainAsNative, SiblingParachainAsNative,88	SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32,89	SovereignSignedViaLocation, TakeWeightCredit, UsingComponents,90};91use xcm_executor::{Config, XcmExecutor};9293// mod chain_extension;94// use crate::chain_extension::{NFTExtension, Imbalance};9596/// An index to a block.97pub type BlockNumber = u32;9899/// Alias to 512-bit hash when used in the context of a transaction signature on the chain.100pub type Signature = MultiSignature;101102/// Some way of identifying an account on the chain. We intentionally make it equivalent103/// to the public key of our transaction signing scheme.104pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;105106pub type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;107108/// The type for looking up accounts. We don't expect more than 4 billion of them, but you109/// never know...110pub type AccountIndex = u32;111112/// Balance of an account.113pub type Balance = u128;114115/// Index of a transaction in the chain.116pub type Index = u32;117118/// A hash of some data used by the chain.119pub type Hash = sp_core::H256;120121/// Digest item type.122pub type DigestItem = generic::DigestItem;123124/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know125/// the specifics of the runtime. They can then be made to be agnostic over specific formats126/// of data like extrinsics, allowing for them to continue syncing the network through upgrades127/// to even the core data structures.128pub mod opaque {129	use super::*;130131	pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;132133	/// Opaque block type.134	pub type Block = generic::Block<Header, UncheckedExtrinsic>;135136	pub type SessionHandlers = ();137138	impl_opaque_keys! {139		pub struct SessionKeys {140			pub aura: Aura,141		}142	}143}144145/// This runtime version.146pub const VERSION: RuntimeVersion = RuntimeVersion {147	spec_name: create_runtime_str!("opal"),148	impl_name: create_runtime_str!("opal"),149	authoring_version: 1,150	spec_version: 914000,151	impl_version: 1,152	state_version: 1,153	apis: RUNTIME_API_VERSIONS,154	transaction_version: 1,155};156157pub const MILLISECS_PER_BLOCK: u64 = 12000;158159pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;160161// These time units are defined in number of blocks.162pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);163pub const HOURS: BlockNumber = MINUTES * 60;164pub const DAYS: BlockNumber = HOURS * 24;165166parameter_types! {167	pub const DefaultSponsoringRateLimit: BlockNumber = 1 * DAYS;168}169170#[derive(codec::Encode, codec::Decode)]171pub enum XCMPMessage<XAccountId, XBalance> {172	/// Transfer tokens to the given account from the Parachain account.173	TransferToken(XAccountId, XBalance),174}175176/// The version information used to identify this runtime when compiled natively.177#[cfg(feature = "std")]178pub fn native_version() -> NativeVersion {179	NativeVersion {180		runtime_version: VERSION,181		can_author_with: Default::default(),182	}183}184185type NegativeImbalance = <Balances as Currency<AccountId>>::NegativeImbalance;186187pub struct DealWithFees;188impl OnUnbalanced<NegativeImbalance> for DealWithFees {189	fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item = NegativeImbalance>) {190		if let Some(fees) = fees_then_tips.next() {191			// for fees, 100% to treasury192			let mut split = fees.ration(100, 0);193			if let Some(tips) = fees_then_tips.next() {194				// for tips, if any, 100% to treasury195				tips.ration_merge_into(100, 0, &mut split);196			}197			Treasury::on_unbalanced(split.0);198			// Author::on_unbalanced(split.1);199		}200	}201}202203/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.204/// This is used to limit the maximal weight of a single extrinsic.205const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);206/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used207/// by  Operational  extrinsics.208const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);209/// We allow for 2 seconds of compute with a 6 second average block time.210const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND / 2;211212parameter_types! {213	pub const BlockHashCount: BlockNumber = 2400;214	pub RuntimeBlockLength: BlockLength =215		BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);216	pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);217	pub const MaximumBlockLength: u32 = 5 * 1024 * 1024;218	pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder()219		.base_block(BlockExecutionWeight::get())220		.for_class(DispatchClass::all(), |weights| {221			weights.base_extrinsic = ExtrinsicBaseWeight::get();222		})223		.for_class(DispatchClass::Normal, |weights| {224			weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);225		})226		.for_class(DispatchClass::Operational, |weights| {227			weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT);228			// Operational transactions have some extra reserved space, so that they229			// are included even if block reached `MAXIMUM_BLOCK_WEIGHT`.230			weights.reserved = Some(231				MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT232			);233		})234		.avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)235		.build_or_panic();236	pub const Version: RuntimeVersion = VERSION;237	pub const SS58Prefix: u8 = 42;238}239240parameter_types! {241	pub const ChainId: u64 = 8888;242}243244pub struct FixedFee;245impl FeeCalculator for FixedFee {246	fn min_gas_price() -> U256 {247		// Targeting 0.15 UNQ per transfer248		1_024_947_215_000u64.into()249	}250}251252// Assuming slowest ethereum opcode is SSTORE, with gas price of 20000 as our worst case253// (contract, which only writes a lot of data),254// approximating on top of our real store write weight255parameter_types! {256	pub const WritesPerSecond: u64 = WEIGHT_PER_SECOND / <Runtime as frame_system::Config>::DbWeight::get().write;257	pub const GasPerSecond: u64 = WritesPerSecond::get() * 20000;258	pub const WeightPerGas: u64 = WEIGHT_PER_SECOND / GasPerSecond::get();259}260261/// Limiting EVM execution to 50% of block for substrate users and management tasks262/// EVM transaction consumes more weight than substrate's, so we can't rely on them being263/// scheduled fairly264const EVM_DISPATCH_RATIO: Perbill = Perbill::from_percent(50);265parameter_types! {266	pub BlockGasLimit: U256 = U256::from(NORMAL_DISPATCH_RATIO * EVM_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT / WeightPerGas::get());267}268269pub enum FixedGasWeightMapping {}270impl GasWeightMapping for FixedGasWeightMapping {271	fn gas_to_weight(gas: u64) -> Weight {272		gas.saturating_mul(WeightPerGas::get())273	}274	fn weight_to_gas(weight: Weight) -> u64 {275		weight / WeightPerGas::get()276	}277}278279impl pallet_evm::Config for Runtime {280	type BlockGasLimit = BlockGasLimit;281	type FeeCalculator = FixedFee;282	type GasWeightMapping = FixedGasWeightMapping;283	type BlockHashMapping = pallet_ethereum::EthereumBlockHashMapping<Self>;284	type CallOrigin = EnsureAddressTruncated;285	type WithdrawOrigin = EnsureAddressTruncated;286	type AddressMapping = HashedAddressMapping<Self::Hashing>;287	type PrecompilesType = ();288	type PrecompilesValue = ();289	type Currency = Balances;290	type Event = Event;291	type OnMethodCall = (292		pallet_evm_migration::OnMethodCall<Self>,293		pallet_unique::UniqueErcSupport<Self>,294		pallet_evm_contract_helpers::HelpersOnMethodCall<Self>,295	);296	type OnCreate = pallet_evm_contract_helpers::HelpersOnCreate<Self>;297	type ChainId = ChainId;298	type Runner = pallet_evm::runner::stack::Runner<Self>;299	type OnChargeTransaction = pallet_evm_transaction_payment::OnChargeTransaction<Self>;300	type TransactionValidityHack = pallet_evm_transaction_payment::TransactionValidityHack<Self>;301	type FindAuthor = EthereumFindAuthor<Aura>;302}303304impl pallet_evm_migration::Config for Runtime {305	type WeightInfo = pallet_evm_migration::weights::SubstrateWeight<Self>;306}307308pub struct EthereumFindAuthor<F>(core::marker::PhantomData<F>);309impl<F: FindAuthor<u32>> FindAuthor<H160> for EthereumFindAuthor<F> {310	fn find_author<'a, I>(digests: I) -> Option<H160>311	where312		I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,313	{314		if let Some(author_index) = F::find_author(digests) {315			let authority_id = Aura::authorities()[author_index as usize].clone();316			return Some(H160::from_slice(&authority_id.to_raw_vec()[4..24]));317		}318		None319	}320}321322impl pallet_ethereum::Config for Runtime {323	type Event = Event;324	type StateRoot = pallet_ethereum::IntermediateStateRoot;325}326327impl pallet_randomness_collective_flip::Config for Runtime {}328329impl frame_system::Config for Runtime {330	/// The data to be stored in an account.331	type AccountData = pallet_balances::AccountData<Balance>;332	/// The identifier used to distinguish between accounts.333	type AccountId = AccountId;334	/// The basic call filter to use in dispatchable.335	type BaseCallFilter = Everything;336	/// Maximum number of block number to block hash mappings to keep (oldest pruned first).337	type BlockHashCount = BlockHashCount;338	/// The maximum length of a block (in bytes).339	type BlockLength = RuntimeBlockLength;340	/// The index type for blocks.341	type BlockNumber = BlockNumber;342	/// The weight of the overhead invoked on the block import process, independent of the extrinsics included in that block.343	type BlockWeights = RuntimeBlockWeights;344	/// The aggregated dispatch type that is available for extrinsics.345	type Call = Call;346	/// The weight of database operations that the runtime can invoke.347	type DbWeight = RocksDbWeight;348	/// The ubiquitous event type.349	type Event = Event;350	/// The type for hashing blocks and tries.351	type Hash = Hash;352	/// The hashing algorithm used.353	type Hashing = BlakeTwo256;354	/// The header type.355	type Header = generic::Header<BlockNumber, BlakeTwo256>;356	/// The index type for storing how many extrinsics an account has signed.357	type Index = Index;358	/// The lookup mechanism to get account ID from whatever is passed in dispatchers.359	type Lookup = AccountIdLookup<AccountId, ()>;360	/// What to do if an account is fully reaped from the system.361	type OnKilledAccount = ();362	/// What to do if a new account is created.363	type OnNewAccount = ();364	type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;365	/// The ubiquitous origin type.366	type Origin = Origin;367	/// This type is being generated by `construct_runtime!`.368	type PalletInfo = PalletInfo;369	/// This is used as an identifier of the chain. 42 is the generic substrate prefix.370	type SS58Prefix = SS58Prefix;371	/// Weight information for the extrinsics of this pallet.372	type SystemWeightInfo = frame_system::weights::SubstrateWeight<Self>;373	/// Version of the runtime.374	type Version = Version;375	type MaxConsumers = ConstU32<16>;376}377378parameter_types! {379	pub const MinimumPeriod: u64 = SLOT_DURATION / 2;380}381382impl pallet_timestamp::Config for Runtime {383	/// A timestamp: milliseconds since the unix epoch.384	type Moment = u64;385	type OnTimestampSet = ();386	type MinimumPeriod = MinimumPeriod;387	type WeightInfo = ();388}389390parameter_types! {391	// pub const ExistentialDeposit: u128 = 500;392	pub const ExistentialDeposit: u128 = 0;393	pub const MaxLocks: u32 = 50;394}395396impl pallet_balances::Config for Runtime {397	type MaxLocks = MaxLocks;398	type MaxReserves = ();399	type ReserveIdentifier = [u8; 8];400	/// The type for recording an account's balance.401	type Balance = Balance;402	/// The ubiquitous event type.403	type Event = Event;404	type DustRemoval = Treasury;405	type ExistentialDeposit = ExistentialDeposit;406	type AccountStore = System;407	type WeightInfo = pallet_balances::weights::SubstrateWeight<Self>;408}409410pub const MICROUNIQUE: Balance = 1_000_000_000_000;411pub const MILLIUNIQUE: Balance = 1_000 * MICROUNIQUE;412pub const CENTIUNIQUE: Balance = 10 * MILLIUNIQUE;413pub const UNIQUE: Balance = 100 * CENTIUNIQUE;414415pub const fn deposit(items: u32, bytes: u32) -> Balance {416	items as Balance * 15 * CENTIUNIQUE + (bytes as Balance) * 6 * CENTIUNIQUE417}418419/*420parameter_types! {421	pub TombstoneDeposit: Balance = deposit(422		1,423		sp_std::mem::size_of::<pallet_contracts::Pallet<Runtime>> as u32,424	);425	pub DepositPerContract: Balance = TombstoneDeposit::get();426	pub const DepositPerStorageByte: Balance = deposit(0, 1);427	pub const DepositPerStorageItem: Balance = deposit(1, 0);428	pub RentFraction: Perbill = Perbill::from_rational(1u32, 30 * DAYS);429	pub const SurchargeReward: Balance = 150 * MILLIUNIQUE;430	pub const SignedClaimHandicap: u32 = 2;431	pub const MaxDepth: u32 = 32;432	pub const MaxValueSize: u32 = 16 * 1024;433	pub const MaxCodeSize: u32 = 1024 * 1024 * 25; // 25 Mb434	// The lazy deletion runs inside on_initialize.435	pub DeletionWeightLimit: Weight = AVERAGE_ON_INITIALIZE_RATIO *436		RuntimeBlockWeights::get().max_block;437	// The weight needed for decoding the queue should be less or equal than a fifth438	// of the overall weight dedicated to the lazy deletion.439	pub DeletionQueueDepth: u32 = ((DeletionWeightLimit::get() / (440			<Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(1) -441			<Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(0)442		)) / 5) as u32;443	pub Schedule: pallet_contracts::Schedule<Runtime> = Default::default();444}445446impl pallet_contracts::Config for Runtime {447	type Time = Timestamp;448	type Randomness = RandomnessCollectiveFlip;449	type Currency = Balances;450	type Event = Event;451	type RentPayment = ();452	type SignedClaimHandicap = SignedClaimHandicap;453	type TombstoneDeposit = TombstoneDeposit;454	type DepositPerContract = DepositPerContract;455	type DepositPerStorageByte = DepositPerStorageByte;456	type DepositPerStorageItem = DepositPerStorageItem;457	type RentFraction = RentFraction;458	type SurchargeReward = SurchargeReward;459	type WeightPrice = pallet_transaction_payment::Pallet<Self>;460	type WeightInfo = pallet_contracts::weights::SubstrateWeight<Self>;461	type ChainExtension = NFTExtension;462	type DeletionQueueDepth = DeletionQueueDepth;463	type DeletionWeightLimit = DeletionWeightLimit;464	type Schedule = Schedule;465	type CallStack = [pallet_contracts::Frame<Self>; 31];466}467*/468469parameter_types! {470	pub const TransactionByteFee: Balance = 501 * MICROUNIQUE; // Targeting 0.1 Unique per NFT transfer471	/// This value increases the priority of `Operational` transactions by adding472	/// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.473	pub const OperationalFeeMultiplier: u8 = 5;474}475476/// Linear implementor of `WeightToFeePolynomial`477pub struct LinearFee<T>(sp_std::marker::PhantomData<T>);478479impl<T> WeightToFeePolynomial for LinearFee<T>480where481	T: BaseArithmetic + From<u32> + Copy + Unsigned,482{483	type Balance = T;484485	fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {486		smallvec!(WeightToFeeCoefficient {487			// Targeting 0.1 Unique per NFT transfer488			coeff_integer: 142_688_000u32.into(),489			coeff_frac: Perbill::zero(),490			negative: false,491			degree: 1,492		})493	}494}495496impl pallet_transaction_payment::Config for Runtime {497	type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;498	type TransactionByteFee = TransactionByteFee;499	type OperationalFeeMultiplier = OperationalFeeMultiplier;500	type WeightToFee = LinearFee<Balance>;501	type FeeMultiplierUpdate = ();502}503504parameter_types! {505	pub const ProposalBond: Permill = Permill::from_percent(5);506	pub const ProposalBondMinimum: Balance = 1 * UNIQUE;507	pub const ProposalBondMaximum: Balance = 1000 * UNIQUE;508	pub const SpendPeriod: BlockNumber = 5 * MINUTES;509	pub const Burn: Permill = Permill::from_percent(0);510	pub const TipCountdown: BlockNumber = 1 * DAYS;511	pub const TipFindersFee: Percent = Percent::from_percent(20);512	pub const TipReportDepositBase: Balance = 1 * UNIQUE;513	pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;514	pub const BountyDepositBase: Balance = 1 * UNIQUE;515	pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;516	pub const TreasuryModuleId: PalletId = PalletId(*b"py/trsry");517	pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;518	pub const MaximumReasonLength: u32 = 16384;519	pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);520	pub const BountyValueMinimum: Balance = 5 * UNIQUE;521	pub const MaxApprovals: u32 = 100;522}523524impl pallet_treasury::Config for Runtime {525	type PalletId = TreasuryModuleId;526	type Currency = Balances;527	type ApproveOrigin = EnsureRoot<AccountId>;528	type RejectOrigin = EnsureRoot<AccountId>;529	type Event = Event;530	type OnSlash = ();531	type ProposalBond = ProposalBond;532	type ProposalBondMinimum = ProposalBondMinimum;533	type ProposalBondMaximum = ProposalBondMaximum;534	type SpendPeriod = SpendPeriod;535	type Burn = Burn;536	type BurnDestination = ();537	type SpendFunds = ();538	type WeightInfo = pallet_treasury::weights::SubstrateWeight<Self>;539	type MaxApprovals = MaxApprovals;540}541542impl pallet_sudo::Config for Runtime {543	type Event = Event;544	type Call = Call;545}546547pub struct RelayChainBlockNumberProvider<T>(sp_std::marker::PhantomData<T>);548549impl<T: cumulus_pallet_parachain_system::Config> BlockNumberProvider550	for RelayChainBlockNumberProvider<T>551{552	type BlockNumber = BlockNumber;553554	fn current_block_number() -> Self::BlockNumber {555		cumulus_pallet_parachain_system::Pallet::<T>::validation_data()556			.map(|d| d.relay_parent_number)557			.unwrap_or_default()558	}559}560561parameter_types! {562	pub const MinVestedTransfer: Balance = 10 * UNIQUE;563	pub const MaxVestingSchedules: u32 = 28;564}565566impl orml_vesting::Config for Runtime {567	type Event = Event;568	type Currency = pallet_balances::Pallet<Runtime>;569	type MinVestedTransfer = MinVestedTransfer;570	type VestedTransferOrigin = EnsureSigned<AccountId>;571	type WeightInfo = ();572	type MaxVestingSchedules = MaxVestingSchedules;573	type BlockNumberProvider = RelayChainBlockNumberProvider<Runtime>;574}575576parameter_types! {577	pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4;578	pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4;579}580581impl cumulus_pallet_parachain_system::Config for Runtime {582	type Event = Event;583	type SelfParaId = parachain_info::Pallet<Self>;584	type OnSystemEvent = ();585	// type DownwardMessageHandlers = cumulus_primitives_utility::UnqueuedDmpAsParent<586	// 	MaxDownwardMessageWeight,587	// 	XcmExecutor<XcmConfig>,588	// 	Call,589	// >;590	type OutboundXcmpMessageSource = XcmpQueue;591	type DmpMessageHandler = DmpQueue;592	type ReservedDmpWeight = ReservedDmpWeight;593	type ReservedXcmpWeight = ReservedXcmpWeight;594	type XcmpMessageHandler = XcmpQueue;595}596597impl parachain_info::Config for Runtime {}598599impl cumulus_pallet_aura_ext::Config for Runtime {}600601parameter_types! {602	pub const RelayLocation: MultiLocation = MultiLocation::parent();603	pub const RelayNetwork: NetworkId = NetworkId::Polkadot;604	pub RelayOrigin: Origin = cumulus_pallet_xcm::Origin::Relay.into();605	pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();606}607608/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used609/// when determining ownership of accounts for asset transacting and when attempting to use XCM610/// `Transact` in order to determine the dispatch Origin.611pub type LocationToAccountId = (612	// The parent (Relay-chain) origin converts to the default `AccountId`.613	ParentIsDefault<AccountId>,614	// Sibling parachain origins convert to AccountId via the `ParaId::into`.615	SiblingParachainConvertsVia<Sibling, AccountId>,616	// Straight up local `AccountId32` origins just alias directly to `AccountId`.617	AccountId32Aliases<RelayNetwork, AccountId>,618);619620/// Means for transacting assets on this chain.621pub type LocalAssetTransactor = CurrencyAdapter<622	// Use this currency:623	Balances,624	// Use this currency when it is a fungible asset matching the given location or name:625	IsConcrete<RelayLocation>,626	// Do a simple punn to convert an AccountId32 MultiLocation into a native chain account ID:627	LocationToAccountId,628	// Our chain's account ID type (we can't get away without mentioning it explicitly):629	AccountId,630	// We don't track any teleports.631	(),632>;633634/// This is the type we use to convert an (incoming) XCM origin into a local `Origin` instance,635/// ready for dispatching a transaction with Xcm's `Transact`. There is an `OriginKind` which can636/// biases the kind of local `Origin` it will become.637pub type XcmOriginToTransactDispatchOrigin = (638	// Sovereign account converter; this attempts to derive an `AccountId` from the origin location639	// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for640	// foreign chains who want to have a local sovereign account on this chain which they control.641	SovereignSignedViaLocation<LocationToAccountId, Origin>,642	// Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when643	// recognised.644	RelayChainAsNative<RelayOrigin, Origin>,645	// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when646	// recognised.647	SiblingParachainAsNative<cumulus_pallet_xcm::Origin, Origin>,648	// Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a649	// transaction from the Root origin.650	ParentAsSuperuser<Origin>,651	// Native signed account converter; this just converts an `AccountId32` origin into a normal652	// `Origin::Signed` origin of the same 32-byte value.653	SignedAccountId32AsNative<RelayNetwork, Origin>,654	// Xcm origins can be represented natively under the Xcm pallet's Xcm origin.655	XcmPassthrough<Origin>,656);657658parameter_types! {659	// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.660	pub UnitWeightCost: Weight = 1_000_000;661	// 1200 UNIQUEs buy 1 second of weight.662	pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), 1_200 * UNIQUE);663	pub const MaxInstructions: u32 = 100;664	pub const MaxAuthorities: u32 = 100_000;665}666667match_type! {668	pub type ParentOrParentsUnitPlurality: impl Contains<MultiLocation> = {669		MultiLocation { parents: 1, interior: Here } |670		MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) }671	};672}673674pub type Barrier = (675	TakeWeightCredit,676	AllowTopLevelPaidExecutionFrom<Everything>,677	AllowUnpaidExecutionFrom<ParentOrParentsUnitPlurality>,678	// ^^^ Parent & its unit plurality gets free execution679);680681pub struct XcmConfig;682impl Config for XcmConfig {683	type Call = Call;684	type XcmSender = XcmRouter;685	// How to withdraw and deposit an asset.686	type AssetTransactor = LocalAssetTransactor;687	type OriginConverter = XcmOriginToTransactDispatchOrigin;688	type IsReserve = NativeAsset;689	type IsTeleporter = (); // Teleportation is disabled690	type LocationInverter = LocationInverter<Ancestry>;691	type Barrier = Barrier;692	type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;693	type Trader = UsingComponents<IdentityFee<Balance>, RelayLocation, AccountId, Balances, ()>;694	type ResponseHandler = (); // Don't handle responses for now.695	type SubscriptionService = PolkadotXcm;696697	type AssetTrap = PolkadotXcm;698	type AssetClaims = PolkadotXcm;699}700701// parameter_types! {702// 	pub const MaxDownwardMessageWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 10;703// }704705/// No local origins on this chain are allowed to dispatch XCM sends/executions.706pub type LocalOriginToLocation = (SignedToAccountId32<Origin, AccountId, RelayNetwork>,);707708/// The means for routing XCM messages which are not for local execution into the right message709/// queues.710pub type XcmRouter = (711	// Two routers - use UMP to communicate with the relay chain:712	cumulus_primitives_utility::ParentAsUmp<ParachainSystem, ()>,713	// ..and XCMP to communicate with the sibling chains.714	XcmpQueue,715);716717impl pallet_evm_coder_substrate::Config for Runtime {718	type EthereumTransactionSender = pallet_ethereum::Pallet<Self>;719	type GasWeightMapping = FixedGasWeightMapping;720}721722impl pallet_xcm::Config for Runtime {723	type Event = Event;724	type SendXcmOrigin = EnsureXcmOrigin<Origin, LocalOriginToLocation>;725	type XcmRouter = XcmRouter;726	type ExecuteXcmOrigin = EnsureXcmOrigin<Origin, LocalOriginToLocation>;727	type XcmExecuteFilter = Everything;728	type XcmExecutor = XcmExecutor<XcmConfig>;729	type XcmTeleportFilter = Everything;730	type XcmReserveTransferFilter = Everything;731	type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;732	type LocationInverter = LocationInverter<Ancestry>;733	type Origin = Origin;734	type Call = Call;735	const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;736	type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;737}738739impl cumulus_pallet_xcm::Config for Runtime {740	type Event = Event;741	type XcmExecutor = XcmExecutor<XcmConfig>;742}743744impl cumulus_pallet_xcmp_queue::Config for Runtime {745	type Event = Event;746	type XcmExecutor = XcmExecutor<XcmConfig>;747	type ChannelInfo = ParachainSystem;748	type VersionWrapper = ();749	type ExecuteOverweightOrigin = frame_system::EnsureRoot<AccountId>;750}751752impl cumulus_pallet_dmp_queue::Config for Runtime {753	type Event = Event;754	type XcmExecutor = XcmExecutor<XcmConfig>;755	type ExecuteOverweightOrigin = frame_system::EnsureRoot<AccountId>;756}757758impl pallet_aura::Config for Runtime {759	type AuthorityId = AuraId;760	type DisabledValidators = ();761	type MaxAuthorities = MaxAuthorities;762}763764parameter_types! {765	pub TreasuryAccountId: AccountId = TreasuryModuleId::get().into_account();766	pub const CollectionCreationPrice: Balance = 100 * UNIQUE;767}768769impl pallet_common::Config for Runtime {770	type Event = Event;771	type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;772	type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;773	type CrossAccountId = pallet_common::account::BasicCrossAccountId<Self>;774775	type Currency = Balances;776	type CollectionCreationPrice = CollectionCreationPrice;777	type TreasuryAccountId = TreasuryAccountId;778}779780impl pallet_fungible::Config for Runtime {781	type WeightInfo = pallet_fungible::weights::SubstrateWeight<Self>;782}783impl pallet_refungible::Config for Runtime {784	type WeightInfo = pallet_refungible::weights::SubstrateWeight<Self>;785}786impl pallet_nonfungible::Config for Runtime {787	type WeightInfo = pallet_nonfungible::weights::SubstrateWeight<Self>;788}789790impl pallet_unique::Config for Runtime {791	type Event = Event;792	type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;793}794795parameter_types! {796	pub const InflationBlockInterval: BlockNumber = 100; // every time per how many blocks inflation is applied797}798799/// Used for the pallet inflation800impl pallet_inflation::Config for Runtime {801	type Currency = Balances;802	type TreasuryAccountId = TreasuryAccountId;803	type InflationBlockInterval = InflationBlockInterval;804	type BlockNumberProvider = RelayChainBlockNumberProvider<Runtime>;805}806807// parameter_types! {808// 	pub MaximumSchedulerWeight: Weight = Perbill::from_percent(50) *809// 		RuntimeBlockWeights::get().max_block;810// 	pub const MaxScheduledPerBlock: u32 = 50;811// }812813type EvmSponsorshipHandler = (814	pallet_unique::UniqueEthSponsorshipHandler<Runtime>,815	pallet_evm_contract_helpers::HelpersContractSponsoring<Runtime>,816);817type SponsorshipHandler = (818	pallet_unique::UniqueSponsorshipHandler<Runtime>,819	//pallet_contract_helpers::ContractSponsorshipHandler<Runtime>,820	pallet_evm_transaction_payment::BridgeSponsorshipHandler<Runtime>,821);822823// impl pallet_unq_scheduler::Config for Runtime {824// 	type Event = Event;825// 	type Origin = Origin;826// 	type PalletsOrigin = OriginCaller;827// 	type Call = Call;828// 	type MaximumWeight = MaximumSchedulerWeight;829// 	type ScheduleOrigin = EnsureSigned<AccountId>;830// 	type MaxScheduledPerBlock = MaxScheduledPerBlock;831// 	type SponsorshipHandler = SponsorshipHandler;832// 	type WeightInfo = ();833// }834835impl pallet_evm_transaction_payment::Config for Runtime {836	type EvmSponsorshipHandler = EvmSponsorshipHandler;837	type Currency = Balances;838	type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;839	type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;840}841842impl pallet_charge_transaction::Config for Runtime {843	type SponsorshipHandler = SponsorshipHandler;844}845846// impl pallet_contract_helpers::Config for Runtime {847//	 type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;848// }849850parameter_types! {851	// 0x842899ECF380553E8a4de75bF534cdf6fBF64049852	pub const HelpersContractAddress: H160 = H160([853		0x84, 0x28, 0x99, 0xec, 0xf3, 0x80, 0x55, 0x3e, 0x8a, 0x4d, 0xe7, 0x5b, 0xf5, 0x34, 0xcd, 0xf6, 0xfb, 0xf6, 0x40, 0x49,854	]);855}856857impl pallet_evm_contract_helpers::Config for Runtime {858	type ContractAddress = HelpersContractAddress;859	type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;860}861862construct_runtime!(863	pub enum Runtime where864		Block = Block,865		NodeBlock = opaque::Block,866		UncheckedExtrinsic = UncheckedExtrinsic867	{868		ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned} = 20,869		ParachainInfo: parachain_info::{Pallet, Storage, Config} = 21,870871		Aura: pallet_aura::{Pallet, Config<T>} = 22,872		AuraExt: cumulus_pallet_aura_ext::{Pallet, Config} = 23,873874		Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 30,875		RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 31,876		Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 32,877		TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 33,878		Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 34,879		Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>} = 35,880		System: frame_system::{Pallet, Call, Storage, Config, Event<T>} = 36,881		Vesting: orml_vesting::{Pallet, Storage, Call, Event<T>, Config<T>} = 37,882		// Vesting: pallet_vesting::{Pallet, Call, Config<T>, Storage, Event<T>} = 37,883		// Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>} = 38,884885		// XCM helpers.886		XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,887		PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 51,888		CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Event<T>, Origin} = 52,889		DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 53,890891		// Unique Pallets892		Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,893		Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,894		// Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,895		// free = 63896		Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,897		// ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,898		Common: pallet_common::{Pallet, Storage, Event<T>} = 66,899		Fungible: pallet_fungible::{Pallet, Storage} = 67,900		Refungible: pallet_refungible::{Pallet, Storage} = 68,901		Nonfungible: pallet_nonfungible::{Pallet, Storage} = 69,902903		// Frontier904		EVM: pallet_evm::{Pallet, Config, Call, Storage, Event<T>} = 100,905		Ethereum: pallet_ethereum::{Pallet, Config, Call, Storage, Event, Origin} = 101,906907		EvmCoderSubstrate: pallet_evm_coder_substrate::{Pallet, Storage} = 150,908		EvmContractHelpers: pallet_evm_contract_helpers::{Pallet, Storage} = 151,909		EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,910		EvmMigration: pallet_evm_migration::{Pallet, Call, Storage} = 153,911	}912);913914pub struct TransactionConverter;915916impl fp_rpc::ConvertTransaction<UncheckedExtrinsic> for TransactionConverter {917	fn convert_transaction(&self, transaction: pallet_ethereum::Transaction) -> UncheckedExtrinsic {918		UncheckedExtrinsic::new_unsigned(919			pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),920		)921	}922}923924impl fp_rpc::ConvertTransaction<opaque::UncheckedExtrinsic> for TransactionConverter {925	fn convert_transaction(926		&self,927		transaction: pallet_ethereum::Transaction,928	) -> opaque::UncheckedExtrinsic {929		let extrinsic = UncheckedExtrinsic::new_unsigned(930			pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),931		);932		let encoded = extrinsic.encode();933		opaque::UncheckedExtrinsic::decode(&mut &encoded[..])934			.expect("Encoded extrinsic is always valid")935	}936}937938/// The address format for describing accounts.939pub type Address = sp_runtime::MultiAddress<AccountId, ()>;940/// Block header type as expected by this runtime.941pub type Header = generic::Header<BlockNumber, BlakeTwo256>;942/// Block type as expected by this runtime.943pub type Block = generic::Block<Header, UncheckedExtrinsic>;944/// A Block signed with a Justification945pub type SignedBlock = generic::SignedBlock<Block>;946/// BlockId type as expected by this runtime.947pub type BlockId = generic::BlockId<Block>;948/// The SignedExtension to the basic transaction logic.949pub type SignedExtra = (950	frame_system::CheckSpecVersion<Runtime>,951	// system::CheckTxVersion<Runtime>,952	frame_system::CheckGenesis<Runtime>,953	frame_system::CheckEra<Runtime>,954	frame_system::CheckNonce<Runtime>,955	frame_system::CheckWeight<Runtime>,956	pallet_charge_transaction::ChargeTransactionPayment<Runtime>,957	//pallet_contract_helpers::ContractHelpersExtension<Runtime>,958);959/// Unchecked extrinsic type as expected by this runtime.960pub type UncheckedExtrinsic =961	fp_self_contained::UncheckedExtrinsic<Address, Call, Signature, SignedExtra>;962/// Extrinsic type that has already been checked.963pub type CheckedExtrinsic = fp_self_contained::CheckedExtrinsic<AccountId, Call, SignedExtra, H160>;964/// Executive: handles dispatch to the various modules.965pub type Executive = frame_executive::Executive<966	Runtime,967	Block,968	frame_system::ChainContext<Runtime>,969	Runtime,970	AllPalletsWithSystem,971>;972973impl_opaque_keys! {974	pub struct SessionKeys {975		pub aura: Aura,976	}977}978979impl fp_self_contained::SelfContainedCall for Call {980	type SignedInfo = H160;981982	fn is_self_contained(&self) -> bool {983		match self {984			Call::Ethereum(call) => call.is_self_contained(),985			_ => false,986		}987	}988989	fn check_self_contained(&self) -> Option<Result<Self::SignedInfo, TransactionValidityError>> {990		match self {991			Call::Ethereum(call) => call.check_self_contained(),992			_ => None,993		}994	}995996	fn validate_self_contained(&self, info: &Self::SignedInfo) -> Option<TransactionValidity> {997		match self {998			Call::Ethereum(call) => call.validate_self_contained(info),999			_ => None,1000		}1001	}10021003	fn pre_dispatch_self_contained(1004		&self,1005		info: &Self::SignedInfo,1006	) -> Option<Result<(), TransactionValidityError>> {1007		match self {1008			Call::Ethereum(call) => call.pre_dispatch_self_contained(info),1009			_ => None,1010		}1011	}10121013	fn apply_self_contained(1014		self,1015		info: Self::SignedInfo,1016	) -> Option<sp_runtime::DispatchResultWithInfo<PostDispatchInfoOf<Self>>> {1017		match self {1018			call @ Call::Ethereum(pallet_ethereum::Call::transact { .. }) => Some(call.dispatch(1019				Origin::from(pallet_ethereum::RawOrigin::EthereumTransaction(info)),1020			)),1021			_ => None,1022		}1023	}1024}10251026macro_rules! dispatch_unique_runtime {1027	($collection:ident.$method:ident($($name:ident),*)) => {{1028		use pallet_unique::dispatch::Dispatched;10291030		let collection = Dispatched::dispatch(<pallet_common::CollectionHandle<Runtime>>::try_get($collection)?);1031		let dispatch = collection.as_dyn();10321033		Ok(dispatch.$method($($name),*))1034	}};1035}1036impl_runtime_apis! {1037	impl up_rpc::UniqueApi<Block, CrossAccountId, AccountId>1038		for Runtime1039	{1040		fn account_tokens(collection: CollectionId, account: CrossAccountId) -> Result<Vec<TokenId>, DispatchError> {1041			dispatch_unique_runtime!(collection.account_tokens(account))1042		}1043		fn token_exists(collection: CollectionId, token: TokenId) -> Result<bool, DispatchError> {1044			dispatch_unique_runtime!(collection.token_exists(token))1045		}10461047		fn token_owner(collection: CollectionId, token: TokenId) -> Result<Option<CrossAccountId>, DispatchError> {1048			dispatch_unique_runtime!(collection.token_owner(token))1049		}1050		fn const_metadata(collection: CollectionId, token: TokenId) -> Result<Vec<u8>, DispatchError> {1051			dispatch_unique_runtime!(collection.const_metadata(token))1052		}1053		fn variable_metadata(collection: CollectionId, token: TokenId) -> Result<Vec<u8>, DispatchError> {1054			dispatch_unique_runtime!(collection.variable_metadata(token))1055		}10561057		fn collection_tokens(collection: CollectionId) -> Result<u32, DispatchError> {1058			dispatch_unique_runtime!(collection.collection_tokens())1059		}1060		fn account_balance(collection: CollectionId, account: CrossAccountId) -> Result<u32, DispatchError> {1061			dispatch_unique_runtime!(collection.account_balance(account))1062		}1063		fn balance(collection: CollectionId, account: CrossAccountId, token: TokenId) -> Result<u128, DispatchError> {1064			dispatch_unique_runtime!(collection.balance(account, token))1065		}1066		fn allowance(1067			collection: CollectionId,1068			sender: CrossAccountId,1069			spender: CrossAccountId,1070			token: TokenId,1071		) -> Result<u128, DispatchError> {1072			dispatch_unique_runtime!(collection.allowance(sender, spender, token))1073		}10741075		fn eth_contract_code(account: H160) -> Option<Vec<u8>> {1076			<pallet_unique::UniqueErcSupport<Runtime>>::get_code(&account)1077				.or_else(|| <pallet_evm_migration::OnMethodCall<Runtime>>::get_code(&account))1078				.or_else(|| <pallet_evm_contract_helpers::HelpersOnMethodCall<Self>>::get_code(&account))1079		}1080		fn adminlist(collection: CollectionId) -> Result<Vec<CrossAccountId>, DispatchError> {1081			Ok(<pallet_common::Pallet<Runtime>>::adminlist(collection))1082		}1083		fn allowlist(collection: CollectionId) -> Result<Vec<CrossAccountId>, DispatchError> {1084			Ok(<pallet_common::Pallet<Runtime>>::allowlist(collection))1085		}1086		fn allowed(collection: CollectionId, user: CrossAccountId) -> Result<bool, DispatchError> {1087			Ok(<pallet_common::Pallet<Runtime>>::allowed(collection, user))1088		}1089		fn last_token_id(collection: CollectionId) -> Result<TokenId, DispatchError> {1090			dispatch_unique_runtime!(collection.last_token_id())1091		}1092		fn collection_by_id(collection: CollectionId) -> Result<Option<Collection<AccountId>>, DispatchError> {1093			Ok(<pallet_common::CollectionById<Runtime>>::get(collection))1094		}1095		fn collection_stats() -> Result<CollectionStats, DispatchError> {1096			Ok(<pallet_common::Pallet<Runtime>>::collection_stats())1097		}1098	}10991100	impl sp_api::Core<Block> for Runtime {1101		fn version() -> RuntimeVersion {1102			VERSION1103		}11041105		fn execute_block(block: Block) {1106			Executive::execute_block(block)1107		}11081109		fn initialize_block(header: &<Block as BlockT>::Header) {1110			Executive::initialize_block(header)1111		}1112	}11131114	impl sp_api::Metadata<Block> for Runtime {1115		fn metadata() -> OpaqueMetadata {1116			OpaqueMetadata::new(Runtime::metadata().into())1117		}1118	}11191120	impl sp_block_builder::BlockBuilder<Block> for Runtime {1121		fn apply_extrinsic(extrinsic: <Block as BlockT>::Extrinsic) -> ApplyExtrinsicResult {1122			Executive::apply_extrinsic(extrinsic)1123		}11241125		fn finalize_block() -> <Block as BlockT>::Header {1126			Executive::finalize_block()1127		}11281129		fn inherent_extrinsics(data: sp_inherents::InherentData) -> Vec<<Block as BlockT>::Extrinsic> {1130			data.create_extrinsics()1131		}11321133		fn check_inherents(1134			block: Block,1135			data: sp_inherents::InherentData,1136		) -> sp_inherents::CheckInherentsResult {1137			data.check_extrinsics(&block)1138		}11391140		// fn random_seed() -> <Block as BlockT>::Hash {1141		//     RandomnessCollectiveFlip::random_seed().01142		// }1143	}11441145	impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {1146		fn validate_transaction(1147			source: TransactionSource,1148			tx: <Block as BlockT>::Extrinsic,1149			hash: <Block as BlockT>::Hash,1150		) -> TransactionValidity {1151			Executive::validate_transaction(source, tx, hash)1152		}1153	}11541155	impl sp_offchain::OffchainWorkerApi<Block> for Runtime {1156		fn offchain_worker(header: &<Block as BlockT>::Header) {1157			Executive::offchain_worker(header)1158		}1159	}11601161	impl fp_rpc::EthereumRuntimeRPCApi<Block> for Runtime {1162		fn chain_id() -> u64 {1163			<Runtime as pallet_evm::Config>::ChainId::get()1164		}11651166		fn account_basic(address: H160) -> EVMAccount {1167			EVM::account_basic(&address)1168		}11691170		fn gas_price() -> U256 {1171			<Runtime as pallet_evm::Config>::FeeCalculator::min_gas_price()1172		}11731174		fn account_code_at(address: H160) -> Vec<u8> {1175			EVM::account_codes(address)1176		}11771178		fn author() -> H160 {1179			<pallet_evm::Pallet<Runtime>>::find_author()1180		}11811182		fn storage_at(address: H160, index: U256) -> H256 {1183			let mut tmp = [0u8; 32];1184			index.to_big_endian(&mut tmp);1185			EVM::account_storages(address, H256::from_slice(&tmp[..]))1186		}11871188		#[allow(clippy::redundant_closure)]1189		fn call(1190			from: H160,1191			to: H160,1192			data: Vec<u8>,1193			value: U256,1194			gas_limit: U256,1195			max_fee_per_gas: Option<U256>,1196			max_priority_fee_per_gas: Option<U256>,1197			nonce: Option<U256>,1198			estimate: bool,1199			access_list: Option<Vec<(H160, Vec<H256>)>>,1200		) -> Result<pallet_evm::CallInfo, sp_runtime::DispatchError> {1201			let config = if estimate {1202				let mut config = <Runtime as pallet_evm::Config>::config().clone();1203				config.estimate = true;1204				Some(config)1205			} else {1206				None1207			};12081209			<Runtime as pallet_evm::Config>::Runner::call(1210				from,1211				to,1212				data,1213				value,1214				gas_limit.low_u64(),1215				max_fee_per_gas,1216				max_priority_fee_per_gas,1217				nonce,1218				access_list.unwrap_or_default(),1219				config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),1220			).map_err(|err| err.into())1221		}12221223		#[allow(clippy::redundant_closure)]1224		fn create(1225			from: H160,1226			data: Vec<u8>,1227			value: U256,1228			gas_limit: U256,1229			max_fee_per_gas: Option<U256>,1230			max_priority_fee_per_gas: Option<U256>,1231			nonce: Option<U256>,1232			estimate: bool,1233			access_list: Option<Vec<(H160, Vec<H256>)>>,1234		) -> Result<pallet_evm::CreateInfo, sp_runtime::DispatchError> {1235			let config = if estimate {1236				let mut config = <Runtime as pallet_evm::Config>::config().clone();1237				config.estimate = true;1238				Some(config)1239			} else {1240				None1241			};12421243			<Runtime as pallet_evm::Config>::Runner::create(1244				from,1245				data,1246				value,1247				gas_limit.low_u64(),1248				max_fee_per_gas,1249				max_priority_fee_per_gas,1250				nonce,1251				access_list.unwrap_or_default(),1252				config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),1253			).map_err(|err| err.into())1254		}12551256		fn current_transaction_statuses() -> Option<Vec<TransactionStatus>> {1257			Ethereum::current_transaction_statuses()1258		}12591260		fn current_block() -> Option<pallet_ethereum::Block> {1261			Ethereum::current_block()1262		}12631264		fn current_receipts() -> Option<Vec<pallet_ethereum::Receipt>> {1265			Ethereum::current_receipts()1266		}12671268		fn current_all() -> (1269			Option<pallet_ethereum::Block>,1270			Option<Vec<pallet_ethereum::Receipt>>,1271			Option<Vec<TransactionStatus>>1272		) {1273			(1274				Ethereum::current_block(),1275				Ethereum::current_receipts(),1276				Ethereum::current_transaction_statuses()1277			)1278		}12791280		fn extrinsic_filter(xts: Vec<<Block as sp_api::BlockT>::Extrinsic>) -> Vec<pallet_ethereum::Transaction> {1281			xts.into_iter().filter_map(|xt| match xt.0.function {1282				Call::Ethereum(pallet_ethereum::Call::transact { transaction }) => Some(transaction),1283				_ => None1284			}).collect()1285		}12861287		fn elasticity() -> Option<Permill> {1288			None1289		}1290	}12911292	impl sp_session::SessionKeys<Block> for Runtime {1293		fn decode_session_keys(1294			encoded: Vec<u8>,1295		) -> Option<Vec<(Vec<u8>, KeyTypeId)>> {1296			SessionKeys::decode_into_raw_public_keys(&encoded)1297		}12981299		fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8> {1300			SessionKeys::generate(seed)1301		}1302	}13031304	impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {1305		fn slot_duration() -> sp_consensus_aura::SlotDuration {1306			sp_consensus_aura::SlotDuration::from_millis(Aura::slot_duration())1307		}13081309		fn authorities() -> Vec<AuraId> {1310			Aura::authorities().to_vec()1311		}1312	}13131314	impl cumulus_primitives_core::CollectCollationInfo<Block> for Runtime {1315		fn collect_collation_info(header: &<Block as BlockT>::Header) -> cumulus_primitives_core::CollationInfo {1316			ParachainSystem::collect_collation_info(header)1317		}1318	}13191320	impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {1321		fn account_nonce(account: AccountId) -> Index {1322			System::account_nonce(account)1323		}1324	}13251326	impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance> for Runtime {1327		fn query_info(uxt: <Block as BlockT>::Extrinsic, len: u32) -> RuntimeDispatchInfo<Balance> {1328			TransactionPayment::query_info(uxt, len)1329		}1330		fn query_fee_details(uxt: <Block as BlockT>::Extrinsic, len: u32) -> FeeDetails<Balance> {1331			TransactionPayment::query_fee_details(uxt, len)1332		}1333	}13341335	/*1336	impl pallet_contracts_rpc_runtime_api::ContractsApi<Block, AccountId, Balance, BlockNumber, Hash>1337		for Runtime1338	{1339		fn call(1340			origin: AccountId,1341			dest: AccountId,1342			value: Balance,1343			gas_limit: u64,1344			input_data: Vec<u8>,1345		) -> pallet_contracts_primitives::ContractExecResult {1346			Contracts::bare_call(origin, dest, value, gas_limit, input_data, false)1347		}13481349		fn instantiate(1350			origin: AccountId,1351			endowment: Balance,1352			gas_limit: u64,1353			code: pallet_contracts_primitives::Code<Hash>,1354			data: Vec<u8>,1355			salt: Vec<u8>,1356		) -> pallet_contracts_primitives::ContractInstantiateResult<AccountId, BlockNumber>1357		{1358			Contracts::bare_instantiate(origin, endowment, gas_limit, code, data, salt, true, false)1359		}13601361		fn get_storage(1362			address: AccountId,1363			key: [u8; 32],1364		) -> pallet_contracts_primitives::GetStorageResult {1365			Contracts::get_storage(address, key)1366		}13671368		fn rent_projection(1369			address: AccountId,1370		) -> pallet_contracts_primitives::RentProjectionResult<BlockNumber> {1371			Contracts::rent_projection(address)1372		}1373	}1374	*/13751376	#[cfg(feature = "runtime-benchmarks")]1377	impl frame_benchmarking::Benchmark<Block> for Runtime {1378		fn benchmark_metadata(extra: bool) -> (1379			Vec<frame_benchmarking::BenchmarkList>,1380			Vec<frame_support::traits::StorageInfo>,1381		) {1382			use frame_benchmarking::{list_benchmark, Benchmarking, BenchmarkList};1383			use frame_support::traits::StorageInfoTrait;13841385			let mut list = Vec::<BenchmarkList>::new();13861387			list_benchmark!(list, extra, pallet_evm_migration, EvmMigration);1388			list_benchmark!(list, extra, pallet_unique, Unique);1389			list_benchmark!(list, extra, pallet_inflation, Inflation);1390			list_benchmark!(list, extra, pallet_fungible, Fungible);1391			list_benchmark!(list, extra, pallet_refungible, Refungible);1392			list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);1393			// list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);13941395			let storage_info = AllPalletsWithSystem::storage_info();13961397			return (list, storage_info)1398		}13991400		fn dispatch_benchmark(1401			config: frame_benchmarking::BenchmarkConfig1402		) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {1403			use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark, TrackedStorageKey};14041405			let allowlist: Vec<TrackedStorageKey> = vec![1406				// Block Number1407				hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac").to_vec().into(),1408				// Total Issuance1409				hex_literal::hex!("c2261276cc9d1f8598ea4b6a74b15c2f57c875e4cff74148e4628f264b974c80").to_vec().into(),1410				// Execution Phase1411				hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef7ff553b5a9862a516939d82b3d3d8661a").to_vec().into(),1412				// Event Count1413				hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef70a98fdbe9ce6c55837576c60c7af3850").to_vec().into(),1414				// System Events1415				hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7").to_vec().into(),1416			];14171418			let mut batches = Vec::<BenchmarkBatch>::new();1419			let params = (&config, &allowlist);14201421			add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);1422			add_benchmark!(params, batches, pallet_unique, Unique);1423			add_benchmark!(params, batches, pallet_inflation, Inflation);1424			add_benchmark!(params, batches, pallet_fungible, Fungible);1425			add_benchmark!(params, batches, pallet_refungible, Refungible);1426			add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);1427			// add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);14281429			if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }1430			Ok(batches)1431		}1432	}1433}14341435struct CheckInherents;14361437impl cumulus_pallet_parachain_system::CheckInherents<Block> for CheckInherents {1438	fn check_inherents(1439		block: &Block,1440		relay_state_proof: &cumulus_pallet_parachain_system::RelayChainStateProof,1441	) -> sp_inherents::CheckInherentsResult {1442		let relay_chain_slot = relay_state_proof1443			.read_slot()1444			.expect("Could not read the relay chain slot from the proof");14451446		let inherent_data =1447			cumulus_primitives_timestamp::InherentDataProvider::from_relay_chain_slot_and_duration(1448				relay_chain_slot,1449				sp_std::time::Duration::from_secs(6),1450			)1451			.create_inherent_data()1452			.expect("Could not create the timestamp inherent data");14531454		inherent_data.check_extrinsics(block)1455	}1456}14571458cumulus_pallet_parachain_system::register_validate_block!(1459	Runtime = Runtime,1460	BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,1461	CheckInherents = CheckInherents,1462);
after · runtime/src/lib.rs
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56//! The Substrate Node Template runtime. This can be compiled with `#[no_std]`, ready for Wasm.78#![cfg_attr(not(feature = "std"), no_std)]9// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.10#![recursion_limit = "1024"]11#![allow(clippy::from_over_into, clippy::identity_op)]12#![allow(clippy::fn_to_numeric_cast_with_truncation)]13// Make the WASM binary available.14#[cfg(feature = "std")]15include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));1617use sp_api::impl_runtime_apis;18use sp_core::{crypto::KeyTypeId, OpaqueMetadata, H256, U256, H160};19use sp_runtime::DispatchError;20// #[cfg(any(feature = "std", test))]21// pub use sp_runtime::BuildStorage;2223use sp_runtime::{24	Permill, Perbill, Percent, create_runtime_str, generic, impl_opaque_keys,25	traits::{26		AccountIdLookup, BlakeTwo256, Block as BlockT, IdentifyAccount, Verify, AccountIdConversion,27	},28	transaction_validity::{TransactionSource, TransactionValidity},29	ApplyExtrinsicResult, MultiSignature, RuntimeAppPublic,30};3132use sp_std::prelude::*;3334#[cfg(feature = "std")]35use sp_version::NativeVersion;36use sp_version::RuntimeVersion;37pub use pallet_transaction_payment::{38	Multiplier, TargetedFeeAdjustment, FeeDetails, RuntimeDispatchInfo,39};40// A few exports that help ease life for downstream crates.41pub use pallet_balances::Call as BalancesCall;42pub use pallet_evm::{EnsureAddressTruncated, HashedAddressMapping, Runner};43pub use frame_support::{44	construct_runtime, match_type,45	dispatch::DispatchResult,46	PalletId, parameter_types, StorageValue, ConsensusEngineId,47	traits::{48		Everything, Currency, ExistenceRequirement, Get, IsInVec, KeyOwnerProofSystem,49		LockIdentifier, OnUnbalanced, Randomness, FindAuthor,50	},51	weights::{52		constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},53		DispatchClass, DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight,54		WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients,55	},56};57use up_data_structs::*;58// use pallet_contracts::weights::WeightInfo;59// #[cfg(any(feature = "std", test))]60use frame_system::{61	self as frame_system, EnsureRoot, EnsureSigned,62	limits::{BlockWeights, BlockLength},63};64use sp_arithmetic::{65	traits::{BaseArithmetic, Unsigned},66};67use smallvec::smallvec;68use codec::{Encode, Decode};69use pallet_evm::{Account as EVMAccount, FeeCalculator, GasWeightMapping, OnMethodCall};70use fp_rpc::TransactionStatus;71use sp_core::crypto::Public;72use sp_runtime::{73	traits::{BlockNumberProvider, Dispatchable, PostDispatchInfoOf},74	transaction_validity::TransactionValidityError,75};7677// pub use pallet_timestamp::Call as TimestampCall;78pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;7980// Polkadot imports81use pallet_xcm::XcmPassthrough;82use polkadot_parachain::primitives::Sibling;83use xcm::v1::{BodyId, Junction::*, MultiLocation, NetworkId, Junctions::*};84use xcm_builder::{85	AccountId32Aliases, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, CurrencyAdapter,86	EnsureXcmOrigin, FixedWeightBounds, IsConcrete, LocationInverter, NativeAsset,87	ParentAsSuperuser, ParentIsDefault, RelayChainAsNative, SiblingParachainAsNative,88	SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32,89	SovereignSignedViaLocation, TakeWeightCredit, UsingComponents,90};91use xcm_executor::{Config, XcmExecutor};9293// mod chain_extension;94// use crate::chain_extension::{NFTExtension, Imbalance};9596/// An index to a block.97pub type BlockNumber = u32;9899/// Alias to 512-bit hash when used in the context of a transaction signature on the chain.100pub type Signature = MultiSignature;101102/// Some way of identifying an account on the chain. We intentionally make it equivalent103/// to the public key of our transaction signing scheme.104pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;105106pub type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;107108/// The type for looking up accounts. We don't expect more than 4 billion of them, but you109/// never know...110pub type AccountIndex = u32;111112/// Balance of an account.113pub type Balance = u128;114115/// Index of a transaction in the chain.116pub type Index = u32;117118/// A hash of some data used by the chain.119pub type Hash = sp_core::H256;120121/// Digest item type.122pub type DigestItem = generic::DigestItem;123124/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know125/// the specifics of the runtime. They can then be made to be agnostic over specific formats126/// of data like extrinsics, allowing for them to continue syncing the network through upgrades127/// to even the core data structures.128pub mod opaque {129	use super::*;130131	pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;132133	/// Opaque block type.134	pub type Block = generic::Block<Header, UncheckedExtrinsic>;135136	pub type SessionHandlers = ();137138	impl_opaque_keys! {139		pub struct SessionKeys {140			pub aura: Aura,141		}142	}143}144145/// This runtime version.146pub const VERSION: RuntimeVersion = RuntimeVersion {147	spec_name: create_runtime_str!("opal"),148	impl_name: create_runtime_str!("opal"),149	authoring_version: 1,150	spec_version: 914000,151	impl_version: 1,152	apis: RUNTIME_API_VERSIONS,153	transaction_version: 0,154	state_version: 0,155};156157pub const MILLISECS_PER_BLOCK: u64 = 12000;158159pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;160161// These time units are defined in number of blocks.162pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);163pub const HOURS: BlockNumber = MINUTES * 60;164pub const DAYS: BlockNumber = HOURS * 24;165166parameter_types! {167	pub const DefaultSponsoringRateLimit: BlockNumber = 1 * DAYS;168}169170#[derive(codec::Encode, codec::Decode)]171pub enum XCMPMessage<XAccountId, XBalance> {172	/// Transfer tokens to the given account from the Parachain account.173	TransferToken(XAccountId, XBalance),174}175176/// The version information used to identify this runtime when compiled natively.177#[cfg(feature = "std")]178pub fn native_version() -> NativeVersion {179	NativeVersion {180		runtime_version: VERSION,181		can_author_with: Default::default(),182	}183}184185type NegativeImbalance = <Balances as Currency<AccountId>>::NegativeImbalance;186187pub struct DealWithFees;188impl OnUnbalanced<NegativeImbalance> for DealWithFees {189	fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item = NegativeImbalance>) {190		if let Some(fees) = fees_then_tips.next() {191			// for fees, 100% to treasury192			let mut split = fees.ration(100, 0);193			if let Some(tips) = fees_then_tips.next() {194				// for tips, if any, 100% to treasury195				tips.ration_merge_into(100, 0, &mut split);196			}197			Treasury::on_unbalanced(split.0);198			// Author::on_unbalanced(split.1);199		}200	}201}202203/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.204/// This is used to limit the maximal weight of a single extrinsic.205const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);206/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used207/// by  Operational  extrinsics.208const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);209/// We allow for 2 seconds of compute with a 6 second average block time.210const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND / 2;211212parameter_types! {213	pub const BlockHashCount: BlockNumber = 2400;214	pub RuntimeBlockLength: BlockLength =215		BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);216	pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);217	pub const MaximumBlockLength: u32 = 5 * 1024 * 1024;218	pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder()219		.base_block(BlockExecutionWeight::get())220		.for_class(DispatchClass::all(), |weights| {221			weights.base_extrinsic = ExtrinsicBaseWeight::get();222		})223		.for_class(DispatchClass::Normal, |weights| {224			weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);225		})226		.for_class(DispatchClass::Operational, |weights| {227			weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT);228			// Operational transactions have some extra reserved space, so that they229			// are included even if block reached `MAXIMUM_BLOCK_WEIGHT`.230			weights.reserved = Some(231				MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT232			);233		})234		.avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)235		.build_or_panic();236	pub const Version: RuntimeVersion = VERSION;237	pub const SS58Prefix: u8 = 42;238}239240parameter_types! {241	pub const ChainId: u64 = 8888;242}243244pub struct FixedFee;245impl FeeCalculator for FixedFee {246	fn min_gas_price() -> U256 {247		// Targeting 0.15 UNQ per transfer248		1_024_947_215_000u64.into()249	}250}251252// Assuming slowest ethereum opcode is SSTORE, with gas price of 20000 as our worst case253// (contract, which only writes a lot of data),254// approximating on top of our real store write weight255parameter_types! {256	pub const WritesPerSecond: u64 = WEIGHT_PER_SECOND / <Runtime as frame_system::Config>::DbWeight::get().write;257	pub const GasPerSecond: u64 = WritesPerSecond::get() * 20000;258	pub const WeightPerGas: u64 = WEIGHT_PER_SECOND / GasPerSecond::get();259}260261/// Limiting EVM execution to 50% of block for substrate users and management tasks262/// EVM transaction consumes more weight than substrate's, so we can't rely on them being263/// scheduled fairly264const EVM_DISPATCH_RATIO: Perbill = Perbill::from_percent(50);265parameter_types! {266	pub BlockGasLimit: U256 = U256::from(NORMAL_DISPATCH_RATIO * EVM_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT / WeightPerGas::get());267}268269pub enum FixedGasWeightMapping {}270impl GasWeightMapping for FixedGasWeightMapping {271	fn gas_to_weight(gas: u64) -> Weight {272		gas.saturating_mul(WeightPerGas::get())273	}274	fn weight_to_gas(weight: Weight) -> u64 {275		weight / WeightPerGas::get()276	}277}278279impl pallet_evm::Config for Runtime {280	type BlockGasLimit = BlockGasLimit;281	type FeeCalculator = FixedFee;282	type GasWeightMapping = FixedGasWeightMapping;283	type BlockHashMapping = pallet_ethereum::EthereumBlockHashMapping<Self>;284	type CallOrigin = EnsureAddressTruncated;285	type WithdrawOrigin = EnsureAddressTruncated;286	type AddressMapping = HashedAddressMapping<Self::Hashing>;287	type PrecompilesType = ();288	type PrecompilesValue = ();289	type Currency = Balances;290	type Event = Event;291	type OnMethodCall = (292		pallet_evm_migration::OnMethodCall<Self>,293		pallet_unique::UniqueErcSupport<Self>,294		pallet_evm_contract_helpers::HelpersOnMethodCall<Self>,295	);296	type OnCreate = pallet_evm_contract_helpers::HelpersOnCreate<Self>;297	type ChainId = ChainId;298	type Runner = pallet_evm::runner::stack::Runner<Self>;299	type OnChargeTransaction = pallet_evm_transaction_payment::OnChargeTransaction<Self>;300	type TransactionValidityHack = pallet_evm_transaction_payment::TransactionValidityHack<Self>;301	type FindAuthor = EthereumFindAuthor<Aura>;302}303304impl pallet_evm_migration::Config for Runtime {305	type WeightInfo = pallet_evm_migration::weights::SubstrateWeight<Self>;306}307308pub struct EthereumFindAuthor<F>(core::marker::PhantomData<F>);309impl<F: FindAuthor<u32>> FindAuthor<H160> for EthereumFindAuthor<F> {310	fn find_author<'a, I>(digests: I) -> Option<H160>311	where312		I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,313	{314		if let Some(author_index) = F::find_author(digests) {315			let authority_id = Aura::authorities()[author_index as usize].clone();316			return Some(H160::from_slice(&authority_id.to_raw_vec()[4..24]));317		}318		None319	}320}321322impl pallet_ethereum::Config for Runtime {323	type Event = Event;324	type StateRoot = pallet_ethereum::IntermediateStateRoot;325}326327impl pallet_randomness_collective_flip::Config for Runtime {}328329impl frame_system::Config for Runtime {330	/// The data to be stored in an account.331	type AccountData = pallet_balances::AccountData<Balance>;332	/// The identifier used to distinguish between accounts.333	type AccountId = AccountId;334	/// The basic call filter to use in dispatchable.335	type BaseCallFilter = Everything;336	/// Maximum number of block number to block hash mappings to keep (oldest pruned first).337	type BlockHashCount = BlockHashCount;338	/// The maximum length of a block (in bytes).339	type BlockLength = RuntimeBlockLength;340	/// The index type for blocks.341	type BlockNumber = BlockNumber;342	/// The weight of the overhead invoked on the block import process, independent of the extrinsics included in that block.343	type BlockWeights = RuntimeBlockWeights;344	/// The aggregated dispatch type that is available for extrinsics.345	type Call = Call;346	/// The weight of database operations that the runtime can invoke.347	type DbWeight = RocksDbWeight;348	/// The ubiquitous event type.349	type Event = Event;350	/// The type for hashing blocks and tries.351	type Hash = Hash;352	/// The hashing algorithm used.353	type Hashing = BlakeTwo256;354	/// The header type.355	type Header = generic::Header<BlockNumber, BlakeTwo256>;356	/// The index type for storing how many extrinsics an account has signed.357	type Index = Index;358	/// The lookup mechanism to get account ID from whatever is passed in dispatchers.359	type Lookup = AccountIdLookup<AccountId, ()>;360	/// What to do if an account is fully reaped from the system.361	type OnKilledAccount = ();362	/// What to do if a new account is created.363	type OnNewAccount = ();364	type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;365	/// The ubiquitous origin type.366	type Origin = Origin;367	/// This type is being generated by `construct_runtime!`.368	type PalletInfo = PalletInfo;369	/// This is used as an identifier of the chain. 42 is the generic substrate prefix.370	type SS58Prefix = SS58Prefix;371	/// Weight information for the extrinsics of this pallet.372	type SystemWeightInfo = frame_system::weights::SubstrateWeight<Self>;373	/// Version of the runtime.374	type Version = Version;375	type MaxConsumers = ConstU32<16>;376}377378parameter_types! {379	pub const MinimumPeriod: u64 = SLOT_DURATION / 2;380}381382impl pallet_timestamp::Config for Runtime {383	/// A timestamp: milliseconds since the unix epoch.384	type Moment = u64;385	type OnTimestampSet = ();386	type MinimumPeriod = MinimumPeriod;387	type WeightInfo = ();388}389390parameter_types! {391	// pub const ExistentialDeposit: u128 = 500;392	pub const ExistentialDeposit: u128 = 0;393	pub const MaxLocks: u32 = 50;394}395396impl pallet_balances::Config for Runtime {397	type MaxLocks = MaxLocks;398	type MaxReserves = ();399	type ReserveIdentifier = [u8; 8];400	/// The type for recording an account's balance.401	type Balance = Balance;402	/// The ubiquitous event type.403	type Event = Event;404	type DustRemoval = Treasury;405	type ExistentialDeposit = ExistentialDeposit;406	type AccountStore = System;407	type WeightInfo = pallet_balances::weights::SubstrateWeight<Self>;408}409410pub const MICROUNIQUE: Balance = 1_000_000_000_000;411pub const MILLIUNIQUE: Balance = 1_000 * MICROUNIQUE;412pub const CENTIUNIQUE: Balance = 10 * MILLIUNIQUE;413pub const UNIQUE: Balance = 100 * CENTIUNIQUE;414415pub const fn deposit(items: u32, bytes: u32) -> Balance {416	items as Balance * 15 * CENTIUNIQUE + (bytes as Balance) * 6 * CENTIUNIQUE417}418419/*420parameter_types! {421	pub TombstoneDeposit: Balance = deposit(422		1,423		sp_std::mem::size_of::<pallet_contracts::Pallet<Runtime>> as u32,424	);425	pub DepositPerContract: Balance = TombstoneDeposit::get();426	pub const DepositPerStorageByte: Balance = deposit(0, 1);427	pub const DepositPerStorageItem: Balance = deposit(1, 0);428	pub RentFraction: Perbill = Perbill::from_rational(1u32, 30 * DAYS);429	pub const SurchargeReward: Balance = 150 * MILLIUNIQUE;430	pub const SignedClaimHandicap: u32 = 2;431	pub const MaxDepth: u32 = 32;432	pub const MaxValueSize: u32 = 16 * 1024;433	pub const MaxCodeSize: u32 = 1024 * 1024 * 25; // 25 Mb434	// The lazy deletion runs inside on_initialize.435	pub DeletionWeightLimit: Weight = AVERAGE_ON_INITIALIZE_RATIO *436		RuntimeBlockWeights::get().max_block;437	// The weight needed for decoding the queue should be less or equal than a fifth438	// of the overall weight dedicated to the lazy deletion.439	pub DeletionQueueDepth: u32 = ((DeletionWeightLimit::get() / (440			<Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(1) -441			<Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(0)442		)) / 5) as u32;443	pub Schedule: pallet_contracts::Schedule<Runtime> = Default::default();444}445446impl pallet_contracts::Config for Runtime {447	type Time = Timestamp;448	type Randomness = RandomnessCollectiveFlip;449	type Currency = Balances;450	type Event = Event;451	type RentPayment = ();452	type SignedClaimHandicap = SignedClaimHandicap;453	type TombstoneDeposit = TombstoneDeposit;454	type DepositPerContract = DepositPerContract;455	type DepositPerStorageByte = DepositPerStorageByte;456	type DepositPerStorageItem = DepositPerStorageItem;457	type RentFraction = RentFraction;458	type SurchargeReward = SurchargeReward;459	type WeightPrice = pallet_transaction_payment::Pallet<Self>;460	type WeightInfo = pallet_contracts::weights::SubstrateWeight<Self>;461	type ChainExtension = NFTExtension;462	type DeletionQueueDepth = DeletionQueueDepth;463	type DeletionWeightLimit = DeletionWeightLimit;464	type Schedule = Schedule;465	type CallStack = [pallet_contracts::Frame<Self>; 31];466}467*/468469parameter_types! {470	pub const TransactionByteFee: Balance = 501 * MICROUNIQUE; // Targeting 0.1 Unique per NFT transfer471	/// This value increases the priority of `Operational` transactions by adding472	/// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.473	pub const OperationalFeeMultiplier: u8 = 5;474}475476/// Linear implementor of `WeightToFeePolynomial`477pub struct LinearFee<T>(sp_std::marker::PhantomData<T>);478479impl<T> WeightToFeePolynomial for LinearFee<T>480where481	T: BaseArithmetic + From<u32> + Copy + Unsigned,482{483	type Balance = T;484485	fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {486		smallvec!(WeightToFeeCoefficient {487			// Targeting 0.1 Unique per NFT transfer488			coeff_integer: 142_688_000u32.into(),489			coeff_frac: Perbill::zero(),490			negative: false,491			degree: 1,492		})493	}494}495496impl pallet_transaction_payment::Config for Runtime {497	type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;498	type TransactionByteFee = TransactionByteFee;499	type OperationalFeeMultiplier = OperationalFeeMultiplier;500	type WeightToFee = LinearFee<Balance>;501	type FeeMultiplierUpdate = ();502}503504parameter_types! {505	pub const ProposalBond: Permill = Permill::from_percent(5);506	pub const ProposalBondMinimum: Balance = 1 * UNIQUE;507	pub const ProposalBondMaximum: Balance = 1000 * UNIQUE;508	pub const SpendPeriod: BlockNumber = 5 * MINUTES;509	pub const Burn: Permill = Permill::from_percent(0);510	pub const TipCountdown: BlockNumber = 1 * DAYS;511	pub const TipFindersFee: Percent = Percent::from_percent(20);512	pub const TipReportDepositBase: Balance = 1 * UNIQUE;513	pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;514	pub const BountyDepositBase: Balance = 1 * UNIQUE;515	pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;516	pub const TreasuryModuleId: PalletId = PalletId(*b"py/trsry");517	pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;518	pub const MaximumReasonLength: u32 = 16384;519	pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);520	pub const BountyValueMinimum: Balance = 5 * UNIQUE;521	pub const MaxApprovals: u32 = 100;522}523524impl pallet_treasury::Config for Runtime {525	type PalletId = TreasuryModuleId;526	type Currency = Balances;527	type ApproveOrigin = EnsureRoot<AccountId>;528	type RejectOrigin = EnsureRoot<AccountId>;529	type Event = Event;530	type OnSlash = ();531	type ProposalBond = ProposalBond;532	type ProposalBondMinimum = ProposalBondMinimum;533	type ProposalBondMaximum = ProposalBondMaximum;534	type SpendPeriod = SpendPeriod;535	type Burn = Burn;536	type BurnDestination = ();537	type SpendFunds = ();538	type WeightInfo = pallet_treasury::weights::SubstrateWeight<Self>;539	type MaxApprovals = MaxApprovals;540}541542impl pallet_sudo::Config for Runtime {543	type Event = Event;544	type Call = Call;545}546547pub struct RelayChainBlockNumberProvider<T>(sp_std::marker::PhantomData<T>);548549impl<T: cumulus_pallet_parachain_system::Config> BlockNumberProvider550	for RelayChainBlockNumberProvider<T>551{552	type BlockNumber = BlockNumber;553554	fn current_block_number() -> Self::BlockNumber {555		cumulus_pallet_parachain_system::Pallet::<T>::validation_data()556			.map(|d| d.relay_parent_number)557			.unwrap_or_default()558	}559}560561parameter_types! {562	pub const MinVestedTransfer: Balance = 10 * UNIQUE;563	pub const MaxVestingSchedules: u32 = 28;564}565566impl orml_vesting::Config for Runtime {567	type Event = Event;568	type Currency = pallet_balances::Pallet<Runtime>;569	type MinVestedTransfer = MinVestedTransfer;570	type VestedTransferOrigin = EnsureSigned<AccountId>;571	type WeightInfo = ();572	type MaxVestingSchedules = MaxVestingSchedules;573	type BlockNumberProvider = RelayChainBlockNumberProvider<Runtime>;574}575576parameter_types! {577	pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4;578	pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4;579}580581impl cumulus_pallet_parachain_system::Config for Runtime {582	type Event = Event;583	type SelfParaId = parachain_info::Pallet<Self>;584	type OnSystemEvent = ();585	// type DownwardMessageHandlers = cumulus_primitives_utility::UnqueuedDmpAsParent<586	// 	MaxDownwardMessageWeight,587	// 	XcmExecutor<XcmConfig>,588	// 	Call,589	// >;590	type OutboundXcmpMessageSource = XcmpQueue;591	type DmpMessageHandler = DmpQueue;592	type ReservedDmpWeight = ReservedDmpWeight;593	type ReservedXcmpWeight = ReservedXcmpWeight;594	type XcmpMessageHandler = XcmpQueue;595}596597impl parachain_info::Config for Runtime {}598599impl cumulus_pallet_aura_ext::Config for Runtime {}600601parameter_types! {602	pub const RelayLocation: MultiLocation = MultiLocation::parent();603	pub const RelayNetwork: NetworkId = NetworkId::Polkadot;604	pub RelayOrigin: Origin = cumulus_pallet_xcm::Origin::Relay.into();605	pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();606}607608/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used609/// when determining ownership of accounts for asset transacting and when attempting to use XCM610/// `Transact` in order to determine the dispatch Origin.611pub type LocationToAccountId = (612	// The parent (Relay-chain) origin converts to the default `AccountId`.613	ParentIsDefault<AccountId>,614	// Sibling parachain origins convert to AccountId via the `ParaId::into`.615	SiblingParachainConvertsVia<Sibling, AccountId>,616	// Straight up local `AccountId32` origins just alias directly to `AccountId`.617	AccountId32Aliases<RelayNetwork, AccountId>,618);619620/// Means for transacting assets on this chain.621pub type LocalAssetTransactor = CurrencyAdapter<622	// Use this currency:623	Balances,624	// Use this currency when it is a fungible asset matching the given location or name:625	IsConcrete<RelayLocation>,626	// Do a simple punn to convert an AccountId32 MultiLocation into a native chain account ID:627	LocationToAccountId,628	// Our chain's account ID type (we can't get away without mentioning it explicitly):629	AccountId,630	// We don't track any teleports.631	(),632>;633634/// This is the type we use to convert an (incoming) XCM origin into a local `Origin` instance,635/// ready for dispatching a transaction with Xcm's `Transact`. There is an `OriginKind` which can636/// biases the kind of local `Origin` it will become.637pub type XcmOriginToTransactDispatchOrigin = (638	// Sovereign account converter; this attempts to derive an `AccountId` from the origin location639	// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for640	// foreign chains who want to have a local sovereign account on this chain which they control.641	SovereignSignedViaLocation<LocationToAccountId, Origin>,642	// Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when643	// recognised.644	RelayChainAsNative<RelayOrigin, Origin>,645	// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when646	// recognised.647	SiblingParachainAsNative<cumulus_pallet_xcm::Origin, Origin>,648	// Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a649	// transaction from the Root origin.650	ParentAsSuperuser<Origin>,651	// Native signed account converter; this just converts an `AccountId32` origin into a normal652	// `Origin::Signed` origin of the same 32-byte value.653	SignedAccountId32AsNative<RelayNetwork, Origin>,654	// Xcm origins can be represented natively under the Xcm pallet's Xcm origin.655	XcmPassthrough<Origin>,656);657658parameter_types! {659	// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.660	pub UnitWeightCost: Weight = 1_000_000;661	// 1200 UNIQUEs buy 1 second of weight.662	pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), 1_200 * UNIQUE);663	pub const MaxInstructions: u32 = 100;664	pub const MaxAuthorities: u32 = 100_000;665}666667match_type! {668	pub type ParentOrParentsUnitPlurality: impl Contains<MultiLocation> = {669		MultiLocation { parents: 1, interior: Here } |670		MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) }671	};672}673674pub type Barrier = (675	TakeWeightCredit,676	AllowTopLevelPaidExecutionFrom<Everything>,677	AllowUnpaidExecutionFrom<ParentOrParentsUnitPlurality>,678	// ^^^ Parent & its unit plurality gets free execution679);680681pub struct XcmConfig;682impl Config for XcmConfig {683	type Call = Call;684	type XcmSender = XcmRouter;685	// How to withdraw and deposit an asset.686	type AssetTransactor = LocalAssetTransactor;687	type OriginConverter = XcmOriginToTransactDispatchOrigin;688	type IsReserve = NativeAsset;689	type IsTeleporter = (); // Teleportation is disabled690	type LocationInverter = LocationInverter<Ancestry>;691	type Barrier = Barrier;692	type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;693	type Trader = UsingComponents<IdentityFee<Balance>, RelayLocation, AccountId, Balances, ()>;694	type ResponseHandler = (); // Don't handle responses for now.695	type SubscriptionService = PolkadotXcm;696697	type AssetTrap = PolkadotXcm;698	type AssetClaims = PolkadotXcm;699}700701// parameter_types! {702// 	pub const MaxDownwardMessageWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 10;703// }704705/// No local origins on this chain are allowed to dispatch XCM sends/executions.706pub type LocalOriginToLocation = (SignedToAccountId32<Origin, AccountId, RelayNetwork>,);707708/// The means for routing XCM messages which are not for local execution into the right message709/// queues.710pub type XcmRouter = (711	// Two routers - use UMP to communicate with the relay chain:712	cumulus_primitives_utility::ParentAsUmp<ParachainSystem, ()>,713	// ..and XCMP to communicate with the sibling chains.714	XcmpQueue,715);716717impl pallet_evm_coder_substrate::Config for Runtime {718	type EthereumTransactionSender = pallet_ethereum::Pallet<Self>;719	type GasWeightMapping = FixedGasWeightMapping;720}721722impl pallet_xcm::Config for Runtime {723	type Event = Event;724	type SendXcmOrigin = EnsureXcmOrigin<Origin, LocalOriginToLocation>;725	type XcmRouter = XcmRouter;726	type ExecuteXcmOrigin = EnsureXcmOrigin<Origin, LocalOriginToLocation>;727	type XcmExecuteFilter = Everything;728	type XcmExecutor = XcmExecutor<XcmConfig>;729	type XcmTeleportFilter = Everything;730	type XcmReserveTransferFilter = Everything;731	type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;732	type LocationInverter = LocationInverter<Ancestry>;733	type Origin = Origin;734	type Call = Call;735	const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;736	type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;737}738739impl cumulus_pallet_xcm::Config for Runtime {740	type Event = Event;741	type XcmExecutor = XcmExecutor<XcmConfig>;742}743744impl cumulus_pallet_xcmp_queue::Config for Runtime {745	type Event = Event;746	type XcmExecutor = XcmExecutor<XcmConfig>;747	type ChannelInfo = ParachainSystem;748	type VersionWrapper = ();749	type ExecuteOverweightOrigin = frame_system::EnsureRoot<AccountId>;750}751752impl cumulus_pallet_dmp_queue::Config for Runtime {753	type Event = Event;754	type XcmExecutor = XcmExecutor<XcmConfig>;755	type ExecuteOverweightOrigin = frame_system::EnsureRoot<AccountId>;756}757758impl pallet_aura::Config for Runtime {759	type AuthorityId = AuraId;760	type DisabledValidators = ();761	type MaxAuthorities = MaxAuthorities;762}763764parameter_types! {765	pub TreasuryAccountId: AccountId = TreasuryModuleId::get().into_account();766	pub const CollectionCreationPrice: Balance = 100 * UNIQUE;767}768769impl pallet_common::Config for Runtime {770	type Event = Event;771	type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;772	type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;773	type CrossAccountId = pallet_common::account::BasicCrossAccountId<Self>;774775	type Currency = Balances;776	type CollectionCreationPrice = CollectionCreationPrice;777	type TreasuryAccountId = TreasuryAccountId;778}779780impl pallet_fungible::Config for Runtime {781	type WeightInfo = pallet_fungible::weights::SubstrateWeight<Self>;782}783impl pallet_refungible::Config for Runtime {784	type WeightInfo = pallet_refungible::weights::SubstrateWeight<Self>;785}786impl pallet_nonfungible::Config for Runtime {787	type WeightInfo = pallet_nonfungible::weights::SubstrateWeight<Self>;788}789790impl pallet_unique::Config for Runtime {791	type Event = Event;792	type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;793}794795parameter_types! {796	pub const InflationBlockInterval: BlockNumber = 100; // every time per how many blocks inflation is applied797}798799/// Used for the pallet inflation800impl pallet_inflation::Config for Runtime {801	type Currency = Balances;802	type TreasuryAccountId = TreasuryAccountId;803	type InflationBlockInterval = InflationBlockInterval;804	type BlockNumberProvider = RelayChainBlockNumberProvider<Runtime>;805}806807// parameter_types! {808// 	pub MaximumSchedulerWeight: Weight = Perbill::from_percent(50) *809// 		RuntimeBlockWeights::get().max_block;810// 	pub const MaxScheduledPerBlock: u32 = 50;811// }812813type EvmSponsorshipHandler = (814	pallet_unique::UniqueEthSponsorshipHandler<Runtime>,815	pallet_evm_contract_helpers::HelpersContractSponsoring<Runtime>,816);817type SponsorshipHandler = (818	pallet_unique::UniqueSponsorshipHandler<Runtime>,819	//pallet_contract_helpers::ContractSponsorshipHandler<Runtime>,820	pallet_evm_transaction_payment::BridgeSponsorshipHandler<Runtime>,821);822823// impl pallet_unq_scheduler::Config for Runtime {824// 	type Event = Event;825// 	type Origin = Origin;826// 	type PalletsOrigin = OriginCaller;827// 	type Call = Call;828// 	type MaximumWeight = MaximumSchedulerWeight;829// 	type ScheduleOrigin = EnsureSigned<AccountId>;830// 	type MaxScheduledPerBlock = MaxScheduledPerBlock;831// 	type SponsorshipHandler = SponsorshipHandler;832// 	type WeightInfo = ();833// }834835impl pallet_evm_transaction_payment::Config for Runtime {836	type EvmSponsorshipHandler = EvmSponsorshipHandler;837	type Currency = Balances;838	type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;839	type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;840}841842impl pallet_charge_transaction::Config for Runtime {843	type SponsorshipHandler = SponsorshipHandler;844}845846// impl pallet_contract_helpers::Config for Runtime {847//	 type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;848// }849850parameter_types! {851	// 0x842899ECF380553E8a4de75bF534cdf6fBF64049852	pub const HelpersContractAddress: H160 = H160([853		0x84, 0x28, 0x99, 0xec, 0xf3, 0x80, 0x55, 0x3e, 0x8a, 0x4d, 0xe7, 0x5b, 0xf5, 0x34, 0xcd, 0xf6, 0xfb, 0xf6, 0x40, 0x49,854	]);855}856857impl pallet_evm_contract_helpers::Config for Runtime {858	type ContractAddress = HelpersContractAddress;859	type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;860}861862construct_runtime!(863	pub enum Runtime where864		Block = Block,865		NodeBlock = opaque::Block,866		UncheckedExtrinsic = UncheckedExtrinsic867	{868		ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned} = 20,869		ParachainInfo: parachain_info::{Pallet, Storage, Config} = 21,870871		Aura: pallet_aura::{Pallet, Config<T>} = 22,872		AuraExt: cumulus_pallet_aura_ext::{Pallet, Config} = 23,873874		Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 30,875		RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 31,876		Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 32,877		TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 33,878		Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 34,879		Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>} = 35,880		System: frame_system::{Pallet, Call, Storage, Config, Event<T>} = 36,881		Vesting: orml_vesting::{Pallet, Storage, Call, Event<T>, Config<T>} = 37,882		// Vesting: pallet_vesting::{Pallet, Call, Config<T>, Storage, Event<T>} = 37,883		// Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>} = 38,884885		// XCM helpers.886		XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,887		PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 51,888		CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Event<T>, Origin} = 52,889		DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 53,890891		// Unique Pallets892		Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,893		Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,894		// Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,895		// free = 63896		Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,897		// ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,898		Common: pallet_common::{Pallet, Storage, Event<T>} = 66,899		Fungible: pallet_fungible::{Pallet, Storage} = 67,900		Refungible: pallet_refungible::{Pallet, Storage} = 68,901		Nonfungible: pallet_nonfungible::{Pallet, Storage} = 69,902903		// Frontier904		EVM: pallet_evm::{Pallet, Config, Call, Storage, Event<T>} = 100,905		Ethereum: pallet_ethereum::{Pallet, Config, Call, Storage, Event, Origin} = 101,906907		EvmCoderSubstrate: pallet_evm_coder_substrate::{Pallet, Storage} = 150,908		EvmContractHelpers: pallet_evm_contract_helpers::{Pallet, Storage} = 151,909		EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,910		EvmMigration: pallet_evm_migration::{Pallet, Call, Storage} = 153,911	}912);913914pub struct TransactionConverter;915916impl fp_rpc::ConvertTransaction<UncheckedExtrinsic> for TransactionConverter {917	fn convert_transaction(&self, transaction: pallet_ethereum::Transaction) -> UncheckedExtrinsic {918		UncheckedExtrinsic::new_unsigned(919			pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),920		)921	}922}923924impl fp_rpc::ConvertTransaction<opaque::UncheckedExtrinsic> for TransactionConverter {925	fn convert_transaction(926		&self,927		transaction: pallet_ethereum::Transaction,928	) -> opaque::UncheckedExtrinsic {929		let extrinsic = UncheckedExtrinsic::new_unsigned(930			pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),931		);932		let encoded = extrinsic.encode();933		opaque::UncheckedExtrinsic::decode(&mut &encoded[..])934			.expect("Encoded extrinsic is always valid")935	}936}937938/// The address format for describing accounts.939pub type Address = sp_runtime::MultiAddress<AccountId, ()>;940/// Block header type as expected by this runtime.941pub type Header = generic::Header<BlockNumber, BlakeTwo256>;942/// Block type as expected by this runtime.943pub type Block = generic::Block<Header, UncheckedExtrinsic>;944/// A Block signed with a Justification945pub type SignedBlock = generic::SignedBlock<Block>;946/// BlockId type as expected by this runtime.947pub type BlockId = generic::BlockId<Block>;948/// The SignedExtension to the basic transaction logic.949pub type SignedExtra = (950	frame_system::CheckSpecVersion<Runtime>,951	// system::CheckTxVersion<Runtime>,952	frame_system::CheckGenesis<Runtime>,953	frame_system::CheckEra<Runtime>,954	frame_system::CheckNonce<Runtime>,955	frame_system::CheckWeight<Runtime>,956	pallet_charge_transaction::ChargeTransactionPayment<Runtime>,957	//pallet_contract_helpers::ContractHelpersExtension<Runtime>,958);959/// Unchecked extrinsic type as expected by this runtime.960pub type UncheckedExtrinsic =961	fp_self_contained::UncheckedExtrinsic<Address, Call, Signature, SignedExtra>;962/// Extrinsic type that has already been checked.963pub type CheckedExtrinsic = fp_self_contained::CheckedExtrinsic<AccountId, Call, SignedExtra, H160>;964/// Executive: handles dispatch to the various modules.965pub type Executive = frame_executive::Executive<966	Runtime,967	Block,968	frame_system::ChainContext<Runtime>,969	Runtime,970	AllPalletsReversedWithSystemFirst,971>;972973impl_opaque_keys! {974	pub struct SessionKeys {975		pub aura: Aura,976	}977}978979impl fp_self_contained::SelfContainedCall for Call {980	type SignedInfo = H160;981982	fn is_self_contained(&self) -> bool {983		match self {984			Call::Ethereum(call) => call.is_self_contained(),985			_ => false,986		}987	}988989	fn check_self_contained(&self) -> Option<Result<Self::SignedInfo, TransactionValidityError>> {990		match self {991			Call::Ethereum(call) => call.check_self_contained(),992			_ => None,993		}994	}995996	fn validate_self_contained(&self, info: &Self::SignedInfo) -> Option<TransactionValidity> {997		match self {998			Call::Ethereum(call) => call.validate_self_contained(info),999			_ => None,1000		}1001	}10021003	fn pre_dispatch_self_contained(1004		&self,1005		info: &Self::SignedInfo,1006	) -> Option<Result<(), TransactionValidityError>> {1007		match self {1008			Call::Ethereum(call) => call.pre_dispatch_self_contained(info),1009			_ => None,1010		}1011	}10121013	fn apply_self_contained(1014		self,1015		info: Self::SignedInfo,1016	) -> Option<sp_runtime::DispatchResultWithInfo<PostDispatchInfoOf<Self>>> {1017		match self {1018			call @ Call::Ethereum(pallet_ethereum::Call::transact { .. }) => Some(call.dispatch(1019				Origin::from(pallet_ethereum::RawOrigin::EthereumTransaction(info)),1020			)),1021			_ => None,1022		}1023	}1024}10251026macro_rules! dispatch_unique_runtime {1027	($collection:ident.$method:ident($($name:ident),*)) => {{1028		use pallet_unique::dispatch::Dispatched;10291030		let collection = Dispatched::dispatch(<pallet_common::CollectionHandle<Runtime>>::try_get($collection)?);1031		let dispatch = collection.as_dyn();10321033		Ok(dispatch.$method($($name),*))1034	}};1035}1036impl_runtime_apis! {1037	impl up_rpc::UniqueApi<Block, CrossAccountId, AccountId>1038		for Runtime1039	{1040		fn account_tokens(collection: CollectionId, account: CrossAccountId) -> Result<Vec<TokenId>, DispatchError> {1041			dispatch_unique_runtime!(collection.account_tokens(account))1042		}1043		fn token_exists(collection: CollectionId, token: TokenId) -> Result<bool, DispatchError> {1044			dispatch_unique_runtime!(collection.token_exists(token))1045		}10461047		fn token_owner(collection: CollectionId, token: TokenId) -> Result<Option<CrossAccountId>, DispatchError> {1048			dispatch_unique_runtime!(collection.token_owner(token))1049		}1050		fn const_metadata(collection: CollectionId, token: TokenId) -> Result<Vec<u8>, DispatchError> {1051			dispatch_unique_runtime!(collection.const_metadata(token))1052		}1053		fn variable_metadata(collection: CollectionId, token: TokenId) -> Result<Vec<u8>, DispatchError> {1054			dispatch_unique_runtime!(collection.variable_metadata(token))1055		}10561057		fn collection_tokens(collection: CollectionId) -> Result<u32, DispatchError> {1058			dispatch_unique_runtime!(collection.collection_tokens())1059		}1060		fn account_balance(collection: CollectionId, account: CrossAccountId) -> Result<u32, DispatchError> {1061			dispatch_unique_runtime!(collection.account_balance(account))1062		}1063		fn balance(collection: CollectionId, account: CrossAccountId, token: TokenId) -> Result<u128, DispatchError> {1064			dispatch_unique_runtime!(collection.balance(account, token))1065		}1066		fn allowance(1067			collection: CollectionId,1068			sender: CrossAccountId,1069			spender: CrossAccountId,1070			token: TokenId,1071		) -> Result<u128, DispatchError> {1072			dispatch_unique_runtime!(collection.allowance(sender, spender, token))1073		}10741075		fn eth_contract_code(account: H160) -> Option<Vec<u8>> {1076			<pallet_unique::UniqueErcSupport<Runtime>>::get_code(&account)1077				.or_else(|| <pallet_evm_migration::OnMethodCall<Runtime>>::get_code(&account))1078				.or_else(|| <pallet_evm_contract_helpers::HelpersOnMethodCall<Self>>::get_code(&account))1079		}1080		fn adminlist(collection: CollectionId) -> Result<Vec<CrossAccountId>, DispatchError> {1081			Ok(<pallet_common::Pallet<Runtime>>::adminlist(collection))1082		}1083		fn allowlist(collection: CollectionId) -> Result<Vec<CrossAccountId>, DispatchError> {1084			Ok(<pallet_common::Pallet<Runtime>>::allowlist(collection))1085		}1086		fn allowed(collection: CollectionId, user: CrossAccountId) -> Result<bool, DispatchError> {1087			Ok(<pallet_common::Pallet<Runtime>>::allowed(collection, user))1088		}1089		fn last_token_id(collection: CollectionId) -> Result<TokenId, DispatchError> {1090			dispatch_unique_runtime!(collection.last_token_id())1091		}1092		fn collection_by_id(collection: CollectionId) -> Result<Option<Collection<AccountId>>, DispatchError> {1093			Ok(<pallet_common::CollectionById<Runtime>>::get(collection))1094		}1095		fn collection_stats() -> Result<CollectionStats, DispatchError> {1096			Ok(<pallet_common::Pallet<Runtime>>::collection_stats())1097		}1098	}10991100	impl sp_api::Core<Block> for Runtime {1101		fn version() -> RuntimeVersion {1102			VERSION1103		}11041105		fn execute_block(block: Block) {1106			Executive::execute_block(block)1107		}11081109		fn initialize_block(header: &<Block as BlockT>::Header) {1110			Executive::initialize_block(header)1111		}1112	}11131114	impl sp_api::Metadata<Block> for Runtime {1115		fn metadata() -> OpaqueMetadata {1116			OpaqueMetadata::new(Runtime::metadata().into())1117		}1118	}11191120	impl sp_block_builder::BlockBuilder<Block> for Runtime {1121		fn apply_extrinsic(extrinsic: <Block as BlockT>::Extrinsic) -> ApplyExtrinsicResult {1122			Executive::apply_extrinsic(extrinsic)1123		}11241125		fn finalize_block() -> <Block as BlockT>::Header {1126			Executive::finalize_block()1127		}11281129		fn inherent_extrinsics(data: sp_inherents::InherentData) -> Vec<<Block as BlockT>::Extrinsic> {1130			data.create_extrinsics()1131		}11321133		fn check_inherents(1134			block: Block,1135			data: sp_inherents::InherentData,1136		) -> sp_inherents::CheckInherentsResult {1137			data.check_extrinsics(&block)1138		}11391140		// fn random_seed() -> <Block as BlockT>::Hash {1141		//     RandomnessCollectiveFlip::random_seed().01142		// }1143	}11441145	impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {1146		fn validate_transaction(1147			source: TransactionSource,1148			tx: <Block as BlockT>::Extrinsic,1149			hash: <Block as BlockT>::Hash,1150		) -> TransactionValidity {1151			Executive::validate_transaction(source, tx, hash)1152		}1153	}11541155	impl sp_offchain::OffchainWorkerApi<Block> for Runtime {1156		fn offchain_worker(header: &<Block as BlockT>::Header) {1157			Executive::offchain_worker(header)1158		}1159	}11601161	impl fp_rpc::EthereumRuntimeRPCApi<Block> for Runtime {1162		fn chain_id() -> u64 {1163			<Runtime as pallet_evm::Config>::ChainId::get()1164		}11651166		fn account_basic(address: H160) -> EVMAccount {1167			EVM::account_basic(&address)1168		}11691170		fn gas_price() -> U256 {1171			<Runtime as pallet_evm::Config>::FeeCalculator::min_gas_price()1172		}11731174		fn account_code_at(address: H160) -> Vec<u8> {1175			EVM::account_codes(address)1176		}11771178		fn author() -> H160 {1179			<pallet_evm::Pallet<Runtime>>::find_author()1180		}11811182		fn storage_at(address: H160, index: U256) -> H256 {1183			let mut tmp = [0u8; 32];1184			index.to_big_endian(&mut tmp);1185			EVM::account_storages(address, H256::from_slice(&tmp[..]))1186		}11871188		#[allow(clippy::redundant_closure)]1189		fn call(1190			from: H160,1191			to: H160,1192			data: Vec<u8>,1193			value: U256,1194			gas_limit: U256,1195			max_fee_per_gas: Option<U256>,1196			max_priority_fee_per_gas: Option<U256>,1197			nonce: Option<U256>,1198			estimate: bool,1199			access_list: Option<Vec<(H160, Vec<H256>)>>,1200		) -> Result<pallet_evm::CallInfo, sp_runtime::DispatchError> {1201			let config = if estimate {1202				let mut config = <Runtime as pallet_evm::Config>::config().clone();1203				config.estimate = true;1204				Some(config)1205			} else {1206				None1207			};12081209			<Runtime as pallet_evm::Config>::Runner::call(1210				from,1211				to,1212				data,1213				value,1214				gas_limit.low_u64(),1215				max_fee_per_gas,1216				max_priority_fee_per_gas,1217				nonce,1218				access_list.unwrap_or_default(),1219				config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),1220			).map_err(|err| err.into())1221		}12221223		#[allow(clippy::redundant_closure)]1224		fn create(1225			from: H160,1226			data: Vec<u8>,1227			value: U256,1228			gas_limit: U256,1229			max_fee_per_gas: Option<U256>,1230			max_priority_fee_per_gas: Option<U256>,1231			nonce: Option<U256>,1232			estimate: bool,1233			access_list: Option<Vec<(H160, Vec<H256>)>>,1234		) -> Result<pallet_evm::CreateInfo, sp_runtime::DispatchError> {1235			let config = if estimate {1236				let mut config = <Runtime as pallet_evm::Config>::config().clone();1237				config.estimate = true;1238				Some(config)1239			} else {1240				None1241			};12421243			<Runtime as pallet_evm::Config>::Runner::create(1244				from,1245				data,1246				value,1247				gas_limit.low_u64(),1248				max_fee_per_gas,1249				max_priority_fee_per_gas,1250				nonce,1251				access_list.unwrap_or_default(),1252				config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),1253			).map_err(|err| err.into())1254		}12551256		fn current_transaction_statuses() -> Option<Vec<TransactionStatus>> {1257			Ethereum::current_transaction_statuses()1258		}12591260		fn current_block() -> Option<pallet_ethereum::Block> {1261			Ethereum::current_block()1262		}12631264		fn current_receipts() -> Option<Vec<pallet_ethereum::Receipt>> {1265			Ethereum::current_receipts()1266		}12671268		fn current_all() -> (1269			Option<pallet_ethereum::Block>,1270			Option<Vec<pallet_ethereum::Receipt>>,1271			Option<Vec<TransactionStatus>>1272		) {1273			(1274				Ethereum::current_block(),1275				Ethereum::current_receipts(),1276				Ethereum::current_transaction_statuses()1277			)1278		}12791280		fn extrinsic_filter(xts: Vec<<Block as sp_api::BlockT>::Extrinsic>) -> Vec<pallet_ethereum::Transaction> {1281			xts.into_iter().filter_map(|xt| match xt.0.function {1282				Call::Ethereum(pallet_ethereum::Call::transact { transaction }) => Some(transaction),1283				_ => None1284			}).collect()1285		}12861287		fn elasticity() -> Option<Permill> {1288			None1289		}1290	}12911292	impl sp_session::SessionKeys<Block> for Runtime {1293		fn decode_session_keys(1294			encoded: Vec<u8>,1295		) -> Option<Vec<(Vec<u8>, KeyTypeId)>> {1296			SessionKeys::decode_into_raw_public_keys(&encoded)1297		}12981299		fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8> {1300			SessionKeys::generate(seed)1301		}1302	}13031304	impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {1305		fn slot_duration() -> sp_consensus_aura::SlotDuration {1306			sp_consensus_aura::SlotDuration::from_millis(Aura::slot_duration())1307		}13081309		fn authorities() -> Vec<AuraId> {1310			Aura::authorities().to_vec()1311		}1312	}13131314	impl cumulus_primitives_core::CollectCollationInfo<Block> for Runtime {1315		fn collect_collation_info(header: &<Block as BlockT>::Header) -> cumulus_primitives_core::CollationInfo {1316			ParachainSystem::collect_collation_info(header)1317		}1318	}13191320	impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {1321		fn account_nonce(account: AccountId) -> Index {1322			System::account_nonce(account)1323		}1324	}13251326	impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance> for Runtime {1327		fn query_info(uxt: <Block as BlockT>::Extrinsic, len: u32) -> RuntimeDispatchInfo<Balance> {1328			TransactionPayment::query_info(uxt, len)1329		}1330		fn query_fee_details(uxt: <Block as BlockT>::Extrinsic, len: u32) -> FeeDetails<Balance> {1331			TransactionPayment::query_fee_details(uxt, len)1332		}1333	}13341335	/*1336	impl pallet_contracts_rpc_runtime_api::ContractsApi<Block, AccountId, Balance, BlockNumber, Hash>1337		for Runtime1338	{1339		fn call(1340			origin: AccountId,1341			dest: AccountId,1342			value: Balance,1343			gas_limit: u64,1344			input_data: Vec<u8>,1345		) -> pallet_contracts_primitives::ContractExecResult {1346			Contracts::bare_call(origin, dest, value, gas_limit, input_data, false)1347		}13481349		fn instantiate(1350			origin: AccountId,1351			endowment: Balance,1352			gas_limit: u64,1353			code: pallet_contracts_primitives::Code<Hash>,1354			data: Vec<u8>,1355			salt: Vec<u8>,1356		) -> pallet_contracts_primitives::ContractInstantiateResult<AccountId, BlockNumber>1357		{1358			Contracts::bare_instantiate(origin, endowment, gas_limit, code, data, salt, true, false)1359		}13601361		fn get_storage(1362			address: AccountId,1363			key: [u8; 32],1364		) -> pallet_contracts_primitives::GetStorageResult {1365			Contracts::get_storage(address, key)1366		}13671368		fn rent_projection(1369			address: AccountId,1370		) -> pallet_contracts_primitives::RentProjectionResult<BlockNumber> {1371			Contracts::rent_projection(address)1372		}1373	}1374	*/13751376	#[cfg(feature = "runtime-benchmarks")]1377	impl frame_benchmarking::Benchmark<Block> for Runtime {1378		fn benchmark_metadata(extra: bool) -> (1379			Vec<frame_benchmarking::BenchmarkList>,1380			Vec<frame_support::traits::StorageInfo>,1381		) {1382			use frame_benchmarking::{list_benchmark, Benchmarking, BenchmarkList};1383			use frame_support::traits::StorageInfoTrait;13841385			let mut list = Vec::<BenchmarkList>::new();13861387			list_benchmark!(list, extra, pallet_evm_migration, EvmMigration);1388			list_benchmark!(list, extra, pallet_unique, Unique);1389			list_benchmark!(list, extra, pallet_inflation, Inflation);1390			list_benchmark!(list, extra, pallet_fungible, Fungible);1391			list_benchmark!(list, extra, pallet_refungible, Refungible);1392			list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);1393			// list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);13941395			let storage_info = AllPalletsReversedWithSystemFirst::storage_info();13961397			return (list, storage_info)1398		}13991400		fn dispatch_benchmark(1401			config: frame_benchmarking::BenchmarkConfig1402		) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {1403			use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark, TrackedStorageKey};14041405			let allowlist: Vec<TrackedStorageKey> = vec![1406				// Block Number1407				hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac").to_vec().into(),1408				// Total Issuance1409				hex_literal::hex!("c2261276cc9d1f8598ea4b6a74b15c2f57c875e4cff74148e4628f264b974c80").to_vec().into(),1410				// Execution Phase1411				hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef7ff553b5a9862a516939d82b3d3d8661a").to_vec().into(),1412				// Event Count1413				hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef70a98fdbe9ce6c55837576c60c7af3850").to_vec().into(),1414				// System Events1415				hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7").to_vec().into(),1416			];14171418			let mut batches = Vec::<BenchmarkBatch>::new();1419			let params = (&config, &allowlist);14201421			add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);1422			add_benchmark!(params, batches, pallet_unique, Unique);1423			add_benchmark!(params, batches, pallet_inflation, Inflation);1424			add_benchmark!(params, batches, pallet_fungible, Fungible);1425			add_benchmark!(params, batches, pallet_refungible, Refungible);1426			add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);1427			// add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);14281429			if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }1430			Ok(batches)1431		}1432	}1433}14341435struct CheckInherents;14361437impl cumulus_pallet_parachain_system::CheckInherents<Block> for CheckInherents {1438	fn check_inherents(1439		block: &Block,1440		relay_state_proof: &cumulus_pallet_parachain_system::RelayChainStateProof,1441	) -> sp_inherents::CheckInherentsResult {1442		let relay_chain_slot = relay_state_proof1443			.read_slot()1444			.expect("Could not read the relay chain slot from the proof");14451446		let inherent_data =1447			cumulus_primitives_timestamp::InherentDataProvider::from_relay_chain_slot_and_duration(1448				relay_chain_slot,1449				sp_std::time::Duration::from_secs(6),1450			)1451			.create_inherent_data()1452			.expect("Could not create the timestamp inherent data");14531454		inherent_data.check_extrinsics(block)1455	}1456}14571458cumulus_pallet_parachain_system::register_validate_block!(1459	Runtime = Runtime,1460	BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,1461	CheckInherents = CheckInherents,1462);