difftreelog
build upgrade polkadot to v0.9.12
in: master
21 files changed
.envdiffbeforeafterboth--- a/.env
+++ b/.env
@@ -1,6 +1,6 @@
RUST_TOOLCHAIN=nightly-2021-06-28
RUST_C=1.55.0-nightly
-POLKA_VERSION=v0.9.11
+POLKA_VERSION=v0.9.12
NFT_BRANCH=develop
USER=***
PASS=***
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -419,9 +419,9 @@
[[package]]
name = "base58"
-version = "0.1.0"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83"
+checksum = "6107fe1be6682a68940da878d9e9f5e90ca5745b3dec9fd1bb393c8777d4f581"
[[package]]
name = "base64"
@@ -447,7 +447,7 @@
[[package]]
name = "beefy-gadget"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"beefy-primitives",
"fnv",
@@ -475,7 +475,7 @@
[[package]]
name = "beefy-gadget-rpc"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"beefy-gadget",
"beefy-primitives",
@@ -495,12 +495,12 @@
[[package]]
name = "beefy-merkle-tree"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
[[package]]
name = "beefy-primitives"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"scale-info",
@@ -690,7 +690,7 @@
[[package]]
name = "bp-header-chain"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"finality-grandpa",
"frame-support",
@@ -706,7 +706,7 @@
[[package]]
name = "bp-message-dispatch"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bp-runtime",
"frame-support",
@@ -718,7 +718,7 @@
[[package]]
name = "bp-messages"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bitvec 0.20.4",
"bp-runtime",
@@ -734,7 +734,7 @@
[[package]]
name = "bp-polkadot-core"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bp-messages",
"bp-runtime",
@@ -752,7 +752,7 @@
[[package]]
name = "bp-rialto"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bp-messages",
"bp-runtime",
@@ -767,7 +767,7 @@
[[package]]
name = "bp-rococo"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bp-messages",
"bp-polkadot-core",
@@ -784,7 +784,7 @@
[[package]]
name = "bp-runtime"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"frame-support",
"hash-db",
@@ -802,7 +802,7 @@
[[package]]
name = "bp-test-utils"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bp-header-chain",
"ed25519-dalek",
@@ -817,7 +817,7 @@
[[package]]
name = "bp-wococo"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bp-messages",
"bp-polkadot-core",
@@ -832,7 +832,7 @@
[[package]]
name = "bridge-runtime-common"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bp-message-dispatch",
"bp-messages",
@@ -1164,18 +1164,18 @@
[[package]]
name = "cranelift-bforest"
-version = "0.76.0"
+version = "0.77.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e6bea67967505247f54fa2c85cf4f6e0e31c4e5692c9b70e4ae58e339067333"
+checksum = "15013642ddda44eebcf61365b2052a23fd8b7314f90ba44aa059ec02643c5139"
dependencies = [
"cranelift-entity",
]
[[package]]
name = "cranelift-codegen"
-version = "0.76.0"
+version = "0.77.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48194035d2752bdd5bdae429e3ab88676e95f52a2b1355a5d4e809f9e39b1d74"
+checksum = "298f2a7ed5fdcb062d8e78b7496b0f4b95265d20245f2d0ca88f846dd192a3a3"
dependencies = [
"cranelift-bforest",
"cranelift-codegen-meta",
@@ -1184,16 +1184,15 @@
"gimli",
"log",
"regalloc",
- "serde",
"smallvec",
"target-lexicon",
]
[[package]]
name = "cranelift-codegen-meta"
-version = "0.76.0"
+version = "0.77.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "976efb22fcab4f2cd6bd4e9913764616a54d895c1a23530128d04e03633c555f"
+checksum = "5cf504261ac62dfaf4ffb3f41d88fd885e81aba947c1241275043885bc5f0bac"
dependencies = [
"cranelift-codegen-shared",
"cranelift-entity",
@@ -1201,27 +1200,24 @@
[[package]]
name = "cranelift-codegen-shared"
-version = "0.76.0"
+version = "0.77.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dabb5fe66e04d4652e434195b45ae65b5c8172d520247b8f66d8df42b2b45dc"
-dependencies = [
- "serde",
-]
+checksum = "1cd2a72db4301dbe7e5a4499035eedc1e82720009fb60603e20504d8691fa9cd"
[[package]]
name = "cranelift-entity"
-version = "0.76.0"
+version = "0.77.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3329733e4d4b8e91c809efcaa4faee80bf66f20164e3dd16d707346bd3494799"
+checksum = "48868faa07cacf948dc4a1773648813c0e453ff9467e800ff10f6a78c021b546"
dependencies = [
"serde",
]
[[package]]
name = "cranelift-frontend"
-version = "0.76.0"
+version = "0.77.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "279afcc0d3e651b773f94837c3d581177b348c8d69e928104b2e9fccb226f921"
+checksum = "351c9d13b4ecd1a536215ec2fd1c3ee9ee8bc31af172abf1e45ed0adb7a931df"
dependencies = [
"cranelift-codegen",
"log",
@@ -1231,9 +1227,9 @@
[[package]]
name = "cranelift-native"
-version = "0.76.0"
+version = "0.77.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c04d1fe6a5abb5bb0edc78baa8ef238370fb8e389cc88b6d153f7c3e9680425"
+checksum = "6df8b556663d7611b137b24db7f6c8d9a8a27d7f29c7ea7835795152c94c1b75"
dependencies = [
"cranelift-codegen",
"libc",
@@ -1242,19 +1238,18 @@
[[package]]
name = "cranelift-wasm"
-version = "0.76.0"
+version = "0.77.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e0d260ad44f6fd2c91f7f5097191a2a9e3edcbb36df1fb787b600dad5ea148ec"
+checksum = "7a69816d90db694fa79aa39b89dda7208a4ac74b6f2b8f3c4da26ee1c8bdfc5e"
dependencies = [
"cranelift-codegen",
"cranelift-entity",
"cranelift-frontend",
"itertools",
"log",
- "serde",
"smallvec",
- "thiserror",
"wasmparser",
+ "wasmtime-types",
]
[[package]]
@@ -1388,7 +1383,7 @@
[[package]]
name = "cumulus-client-cli"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"sc-cli",
"sc-service",
@@ -1398,7 +1393,7 @@
[[package]]
name = "cumulus-client-collator"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-client-consensus-common",
"cumulus-client-network",
@@ -1421,7 +1416,7 @@
[[package]]
name = "cumulus-client-consensus-aura"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"async-trait",
"cumulus-client-consensus-common",
@@ -1451,7 +1446,7 @@
[[package]]
name = "cumulus-client-consensus-common"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"async-trait",
"dyn-clone",
@@ -1471,7 +1466,7 @@
[[package]]
name = "cumulus-client-network"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"derive_more",
"futures 0.3.17",
@@ -1494,7 +1489,7 @@
[[package]]
name = "cumulus-client-pov-recovery"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-primitives-core",
"futures 0.3.17",
@@ -1517,7 +1512,7 @@
[[package]]
name = "cumulus-client-service"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-client-collator",
"cumulus-client-consensus-common",
@@ -1546,7 +1541,7 @@
[[package]]
name = "cumulus-pallet-aura-ext"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"frame-executive",
"frame-support",
@@ -1564,7 +1559,7 @@
[[package]]
name = "cumulus-pallet-dmp-queue"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-primitives-core",
"frame-support",
@@ -1582,7 +1577,7 @@
[[package]]
name = "cumulus-pallet-parachain-system"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-pallet-parachain-system-proc-macro",
"cumulus-primitives-core",
@@ -1611,7 +1606,7 @@
[[package]]
name = "cumulus-pallet-parachain-system-proc-macro"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"proc-macro-crate 1.1.0",
"proc-macro2",
@@ -1622,7 +1617,7 @@
[[package]]
name = "cumulus-pallet-xcm"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-primitives-core",
"frame-support",
@@ -1639,7 +1634,7 @@
[[package]]
name = "cumulus-pallet-xcmp-queue"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-primitives-core",
"frame-support",
@@ -1657,7 +1652,7 @@
[[package]]
name = "cumulus-primitives-core"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"frame-support",
"impl-trait-for-tuples 0.2.1",
@@ -1674,7 +1669,7 @@
[[package]]
name = "cumulus-primitives-parachain-inherent"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"async-trait",
"cumulus-primitives-core",
@@ -1696,7 +1691,7 @@
[[package]]
name = "cumulus-primitives-timestamp"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-primitives-core",
"sp-inherents",
@@ -1707,7 +1702,7 @@
[[package]]
name = "cumulus-primitives-utility"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-primitives-core",
"frame-support",
@@ -1724,7 +1719,7 @@
[[package]]
name = "cumulus-test-relay-sproof-builder"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-primitives-core",
"parity-scale-codec",
@@ -2052,15 +2047,6 @@
checksum = "68b91989ae21441195d7d9b9993a2f9295c7e1a8c96255d8b729accddc124797"
[[package]]
-name = "erased-serde"
-version = "0.3.16"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3de9ad4541d99dc22b59134e7ff8dc3d6c988c89ecd7324bf10a8362b07a2afa"
-dependencies = [
- "serde",
-]
-
-[[package]]
name = "errno"
version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2099,6 +2085,24 @@
[[package]]
name = "ethereum"
version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a67be3eaf296ef668733f54c637e84d0ca34eaf194f0077455135981ad464c3"
+dependencies = [
+ "bytes 1.1.0",
+ "ethereum-types",
+ "hash-db",
+ "hash256-std-hasher",
+ "parity-scale-codec",
+ "rlp",
+ "rlp-derive",
+ "serde",
+ "sha3 0.9.1",
+ "triehash",
+]
+
+[[package]]
+name = "ethereum"
+version = "0.9.0"
source = "git+https://github.com/purestake/ethereum?branch=joshy-scale-info#2b98173bd88c05bfeefad421d260101b9008497b"
dependencies = [
"bytes 1.1.0",
@@ -2142,7 +2146,7 @@
source = "git+https://github.com/uniquenetwork/evm.git?branch=precompile-output-parachain#bed08923a76339880e05df25a52c5334e9997bb2"
dependencies = [
"environmental",
- "ethereum",
+ "ethereum 0.9.0 (git+https://github.com/purestake/ethereum?branch=joshy-scale-info)",
"evm-core",
"evm-gasometer",
"evm-runtime",
@@ -2159,7 +2163,7 @@
name = "evm-coder"
version = "0.1.0"
dependencies = [
- "ethereum",
+ "ethereum 0.9.0 (git+https://github.com/purestake/ethereum?branch=joshy-scale-info)",
"evm-coder-macros",
"evm-core",
"hex",
@@ -2248,7 +2252,7 @@
[[package]]
name = "fc-consensus"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
"async-trait",
"derive_more",
@@ -2275,7 +2279,7 @@
[[package]]
name = "fc-db"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
"fp-storage",
"kvdb",
@@ -2291,7 +2295,7 @@
[[package]]
name = "fc-mapping-sync"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
"fc-consensus",
"fc-db",
@@ -2309,9 +2313,9 @@
[[package]]
name = "fc-rpc"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
- "ethereum",
+ "ethereum 0.9.0 (git+https://github.com/purestake/ethereum?branch=joshy-scale-info)",
"ethereum-types",
"evm",
"fc-consensus",
@@ -2327,9 +2331,11 @@
"jsonrpc-pubsub",
"libsecp256k1 0.3.5",
"log",
+ "lru 0.6.6",
"pallet-ethereum",
"pallet-evm",
"parity-scale-codec",
+ "parking_lot 0.11.2",
"rand 0.7.3",
"rlp",
"rustc-hex",
@@ -2337,6 +2343,7 @@
"sc-network",
"sc-rpc",
"sc-service",
+ "sc-transaction-pool",
"sc-transaction-pool-api",
"sha3 0.8.2",
"sp-api",
@@ -2350,7 +2357,7 @@
[[package]]
name = "fc-rpc-core"
version = "1.1.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
"ethereum-types",
"jsonrpc-core",
@@ -2453,7 +2460,7 @@
[[package]]
name = "fork-tree"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
]
@@ -2471,9 +2478,9 @@
[[package]]
name = "fp-consensus"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
- "ethereum",
+ "ethereum 0.9.0 (git+https://github.com/purestake/ethereum?branch=joshy-scale-info)",
"parity-scale-codec",
"rlp",
"sha3 0.8.2",
@@ -2485,7 +2492,7 @@
[[package]]
name = "fp-evm"
version = "3.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
"evm",
"impl-trait-for-tuples 0.1.3",
@@ -2499,9 +2506,9 @@
[[package]]
name = "fp-rpc"
version = "3.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
- "ethereum",
+ "ethereum 0.9.0 (git+https://github.com/purestake/ethereum?branch=joshy-scale-info)",
"ethereum-types",
"fp-evm",
"parity-scale-codec",
@@ -2514,14 +2521,31 @@
]
[[package]]
+name = "fp-self-contained"
+version = "1.0.0-dev"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
+dependencies = [
+ "ethereum 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "frame-support",
+ "parity-scale-codec",
+ "parity-util-mem",
+ "scale-info",
+ "serde",
+ "sha3 0.8.2",
+ "sp-core",
+ "sp-io",
+ "sp-runtime",
+]
+
+[[package]]
name = "fp-storage"
version = "2.0.0"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
[[package]]
name = "frame-benchmarking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -2541,7 +2565,7 @@
[[package]]
name = "frame-benchmarking-cli"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"Inflector",
"chrono",
@@ -2567,7 +2591,7 @@
[[package]]
name = "frame-election-provider-support"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -2581,7 +2605,7 @@
[[package]]
name = "frame-executive"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -2609,7 +2633,7 @@
[[package]]
name = "frame-support"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"bitflags",
"frame-metadata",
@@ -2636,7 +2660,7 @@
[[package]]
name = "frame-support-procedural"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"Inflector",
"frame-support-procedural-tools",
@@ -2648,7 +2672,7 @@
[[package]]
name = "frame-support-procedural-tools"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support-procedural-tools-derive",
"proc-macro-crate 1.1.0",
@@ -2660,7 +2684,7 @@
[[package]]
name = "frame-support-procedural-tools-derive"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"proc-macro2",
"quote",
@@ -2670,7 +2694,7 @@
[[package]]
name = "frame-system"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"log",
@@ -2687,7 +2711,7 @@
[[package]]
name = "frame-system-benchmarking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -2702,7 +2726,7 @@
[[package]]
name = "frame-system-rpc-runtime-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"sp-api",
@@ -2711,7 +2735,7 @@
[[package]]
name = "frame-try-runtime"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"sp-api",
@@ -3662,8 +3686,8 @@
[[package]]
name = "kusama-runtime"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"beefy-primitives",
"bitvec 0.20.4",
@@ -4164,7 +4188,7 @@
"libp2p-core",
"libp2p-swarm",
"log",
- "lru",
+ "lru 0.6.6",
"minicbor",
"rand 0.7.3",
"smallvec",
@@ -4489,6 +4513,15 @@
]
[[package]]
+name = "lru"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c748cfe47cb8da225c37595b3108bea1c198c84aaae8ea0ba76d01dda9fc803"
+dependencies = [
+ "hashbrown",
+]
+
+[[package]]
name = "lru-cache"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -4603,7 +4636,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "beeb98b3d1ed2c0054bd81b5ba949a0243c3ccad751d45ea898fa8059fa2860a"
dependencies = [
- "lru",
+ "lru 0.6.6",
]
[[package]]
@@ -4626,8 +4659,8 @@
[[package]]
name = "metered-channel"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"derive_more",
"futures 0.3.17",
@@ -4961,7 +4994,7 @@
"sp-transaction-pool",
"sp-trie",
"structopt",
- "substrate-build-script-utils",
+ "substrate-build-script-utils 3.0.0 (git+https://github.com/paritytech/substrate.git)",
"substrate-frame-rpc-system",
"substrate-prometheus-endpoint",
]
@@ -5038,6 +5071,7 @@
"cumulus-primitives-utility",
"derivative",
"fp-rpc",
+ "fp-self-contained",
"frame-benchmarking",
"frame-executive",
"frame-support",
@@ -5254,7 +5288,7 @@
[[package]]
name = "pallet-aura"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -5270,7 +5304,7 @@
[[package]]
name = "pallet-authority-discovery"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -5286,7 +5320,7 @@
[[package]]
name = "pallet-authorship"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -5301,7 +5335,7 @@
[[package]]
name = "pallet-babe"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5325,7 +5359,7 @@
[[package]]
name = "pallet-bags-list"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-election-provider-support",
@@ -5345,7 +5379,7 @@
[[package]]
name = "pallet-balances"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5360,7 +5394,7 @@
[[package]]
name = "pallet-beefy"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"beefy-primitives",
"frame-support",
@@ -5376,7 +5410,7 @@
[[package]]
name = "pallet-beefy-mmr"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"beefy-merkle-tree",
"beefy-primitives",
@@ -5401,7 +5435,7 @@
[[package]]
name = "pallet-bounties"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5419,7 +5453,7 @@
[[package]]
name = "pallet-bridge-dispatch"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bp-message-dispatch",
"bp-runtime",
@@ -5436,7 +5470,7 @@
[[package]]
name = "pallet-bridge-grandpa"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bp-header-chain",
"bp-runtime",
@@ -5458,7 +5492,7 @@
[[package]]
name = "pallet-bridge-messages"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bitvec 0.20.4",
"bp-message-dispatch",
@@ -5480,7 +5514,7 @@
[[package]]
name = "pallet-collective"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5511,13 +5545,13 @@
[[package]]
name = "pallet-contracts"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"bitflags",
"frame-benchmarking",
"frame-support",
"frame-system",
- "libsecp256k1 0.3.5",
+ "libsecp256k1 0.6.0",
"log",
"pallet-contracts-primitives",
"pallet-contracts-proc-macro",
@@ -5538,7 +5572,7 @@
[[package]]
name = "pallet-contracts-primitives"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"bitflags",
"parity-scale-codec",
@@ -5552,7 +5586,7 @@
[[package]]
name = "pallet-contracts-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"proc-macro2",
"quote",
@@ -5562,7 +5596,7 @@
[[package]]
name = "pallet-democracy"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5578,7 +5612,7 @@
[[package]]
name = "pallet-election-provider-multi-phase"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-election-provider-support",
@@ -5602,7 +5636,7 @@
[[package]]
name = "pallet-elections-phragmen"
version = "5.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5620,18 +5654,18 @@
[[package]]
name = "pallet-ethereum"
version = "4.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
- "ethereum",
+ "ethereum 0.9.0 (git+https://github.com/purestake/ethereum?branch=joshy-scale-info)",
"ethereum-types",
"evm",
"fp-consensus",
"fp-evm",
"fp-rpc",
+ "fp-self-contained",
"fp-storage",
"frame-support",
"frame-system",
- "libsecp256k1 0.5.0",
"pallet-balances",
"pallet-evm",
"pallet-timestamp",
@@ -5649,7 +5683,7 @@
[[package]]
name = "pallet-evm"
version = "6.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.12#43ce3be6274eceaf47d9664ddc71cba68a990923"
dependencies = [
"evm",
"evm-gasometer",
@@ -5679,7 +5713,7 @@
name = "pallet-evm-coder-substrate"
version = "0.1.0"
dependencies = [
- "ethereum",
+ "ethereum 0.9.0 (git+https://github.com/purestake/ethereum?branch=joshy-scale-info)",
"evm-coder",
"frame-support",
"frame-system",
@@ -5747,7 +5781,7 @@
[[package]]
name = "pallet-gilt"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5762,7 +5796,7 @@
[[package]]
name = "pallet-grandpa"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5785,7 +5819,7 @@
[[package]]
name = "pallet-identity"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"enumflags2",
"frame-benchmarking",
@@ -5801,7 +5835,7 @@
[[package]]
name = "pallet-im-online"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5821,7 +5855,7 @@
[[package]]
name = "pallet-indices"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5857,7 +5891,7 @@
[[package]]
name = "pallet-membership"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5874,7 +5908,7 @@
[[package]]
name = "pallet-mmr"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"ckb-merkle-mountain-range",
"frame-benchmarking",
@@ -5892,7 +5926,7 @@
[[package]]
name = "pallet-mmr-primitives"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -5908,7 +5942,7 @@
[[package]]
name = "pallet-mmr-rpc"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"jsonrpc-core",
"jsonrpc-core-client",
@@ -5925,7 +5959,7 @@
[[package]]
name = "pallet-multisig"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5941,7 +5975,7 @@
name = "pallet-nft"
version = "3.0.0"
dependencies = [
- "ethereum",
+ "ethereum 0.9.0 (git+https://github.com/purestake/ethereum?branch=joshy-scale-info)",
"evm-coder",
"fp-evm",
"frame-benchmarking",
@@ -6009,7 +6043,7 @@
[[package]]
name = "pallet-nicks"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -6023,7 +6057,7 @@
[[package]]
name = "pallet-offences"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -6040,7 +6074,7 @@
[[package]]
name = "pallet-offences-benchmarking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-election-provider-support",
@@ -6063,7 +6097,7 @@
[[package]]
name = "pallet-proxy"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6078,7 +6112,7 @@
[[package]]
name = "pallet-randomness-collective-flip"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -6092,7 +6126,7 @@
[[package]]
name = "pallet-recovery"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -6125,7 +6159,7 @@
[[package]]
name = "pallet-scheduler"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6141,7 +6175,7 @@
[[package]]
name = "pallet-session"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -6162,7 +6196,7 @@
[[package]]
name = "pallet-session-benchmarking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6178,7 +6212,7 @@
[[package]]
name = "pallet-society"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -6192,7 +6226,7 @@
[[package]]
name = "pallet-staking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-election-provider-support",
@@ -6215,7 +6249,7 @@
[[package]]
name = "pallet-staking-reward-curve"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"proc-macro-crate 1.1.0",
"proc-macro2",
@@ -6226,7 +6260,7 @@
[[package]]
name = "pallet-staking-reward-fn"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"log",
"sp-arithmetic",
@@ -6235,7 +6269,7 @@
[[package]]
name = "pallet-sudo"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -6249,7 +6283,7 @@
[[package]]
name = "pallet-timestamp"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6267,7 +6301,7 @@
[[package]]
name = "pallet-tips"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6286,7 +6320,7 @@
[[package]]
name = "pallet-transaction-payment"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-support",
"frame-system",
@@ -6303,7 +6337,7 @@
[[package]]
name = "pallet-transaction-payment-rpc"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"jsonrpc-core",
"jsonrpc-core-client",
@@ -6320,7 +6354,7 @@
[[package]]
name = "pallet-transaction-payment-rpc-runtime-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"pallet-transaction-payment",
"parity-scale-codec",
@@ -6331,7 +6365,7 @@
[[package]]
name = "pallet-treasury"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6348,7 +6382,7 @@
[[package]]
name = "pallet-utility"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6364,7 +6398,7 @@
[[package]]
name = "pallet-vesting"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6378,8 +6412,8 @@
[[package]]
name = "pallet-xcm"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"frame-support",
"frame-system",
@@ -6397,7 +6431,7 @@
[[package]]
name = "pallet-xcm-benchmarks"
version = "0.9.8"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6414,7 +6448,7 @@
[[package]]
name = "parachain-info"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.12#f5926c2f50df73bf36171b138241437131d76fff"
dependencies = [
"cumulus-primitives-core",
"frame-support",
@@ -6499,7 +6533,7 @@
"ethereum-types",
"hashbrown",
"impl-trait-for-tuples 0.2.1",
- "lru",
+ "lru 0.6.6",
"parity-util-mem-derive",
"parking_lot 0.11.2",
"primitive-types 0.10.1",
@@ -6773,8 +6807,8 @@
[[package]]
name = "polkadot-approval-distribution"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"polkadot-node-network-protocol",
@@ -6787,8 +6821,8 @@
[[package]]
name = "polkadot-availability-bitfield-distribution"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"polkadot-node-network-protocol",
@@ -6800,12 +6834,12 @@
[[package]]
name = "polkadot-availability-distribution"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"derive_more",
"futures 0.3.17",
- "lru",
+ "lru 0.7.0",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-network-protocol",
@@ -6822,11 +6856,11 @@
[[package]]
name = "polkadot-availability-recovery"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
- "lru",
+ "lru 0.7.0",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-network-protocol",
@@ -6842,8 +6876,8 @@
[[package]]
name = "polkadot-cli"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"frame-benchmarking-cli",
"futures 0.3.17",
@@ -6855,15 +6889,15 @@
"sp-core",
"sp-trie",
"structopt",
- "substrate-build-script-utils",
+ "substrate-build-script-utils 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12)",
"thiserror",
"try-runtime-cli",
]
[[package]]
name = "polkadot-client"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"beefy-primitives",
"frame-benchmarking",
@@ -6892,8 +6926,8 @@
[[package]]
name = "polkadot-collator-protocol"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"always-assert",
"derive_more",
@@ -6913,8 +6947,8 @@
[[package]]
name = "polkadot-core-primitives"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"parity-scale-codec",
"parity-util-mem",
@@ -6926,12 +6960,12 @@
[[package]]
name = "polkadot-dispute-distribution"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"derive_more",
"futures 0.3.17",
- "lru",
+ "lru 0.7.0",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-network-protocol",
@@ -6948,8 +6982,8 @@
[[package]]
name = "polkadot-erasure-coding"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"parity-scale-codec",
"polkadot-node-primitives",
@@ -6962,8 +6996,8 @@
[[package]]
name = "polkadot-gossip-support"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
@@ -6982,8 +7016,8 @@
[[package]]
name = "polkadot-network-bridge"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -7001,8 +7035,8 @@
[[package]]
name = "polkadot-node-collation-generation"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"parity-scale-codec",
@@ -7019,15 +7053,15 @@
[[package]]
name = "polkadot-node-core-approval-voting"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bitvec 0.20.4",
"derive_more",
"futures 0.3.17",
"futures-timer 3.0.2",
"kvdb",
- "lru",
+ "lru 0.7.0",
"merlin",
"parity-scale-codec",
"polkadot-node-jaeger",
@@ -7047,8 +7081,8 @@
[[package]]
name = "polkadot-node-core-av-store"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bitvec 0.20.4",
"futures 0.3.17",
@@ -7067,8 +7101,8 @@
[[package]]
name = "polkadot-node-core-backing"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bitvec 0.20.4",
"futures 0.3.17",
@@ -7085,8 +7119,8 @@
[[package]]
name = "polkadot-node-core-bitfield-signing"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"polkadot-node-subsystem",
@@ -7100,8 +7134,8 @@
[[package]]
name = "polkadot-node-core-candidate-validation"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -7118,8 +7152,8 @@
[[package]]
name = "polkadot-node-core-chain-api"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"polkadot-node-subsystem",
@@ -7133,8 +7167,8 @@
[[package]]
name = "polkadot-node-core-chain-selection"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
@@ -7150,8 +7184,8 @@
[[package]]
name = "polkadot-node-core-dispute-coordinator"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bitvec 0.20.4",
"derive_more",
@@ -7169,8 +7203,8 @@
[[package]]
name = "polkadot-node-core-dispute-participation"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"polkadot-node-primitives",
@@ -7182,8 +7216,8 @@
[[package]]
name = "polkadot-node-core-parachains-inherent"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -7199,8 +7233,8 @@
[[package]]
name = "polkadot-node-core-provisioner"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bitvec 0.20.4",
"futures 0.3.17",
@@ -7214,8 +7248,8 @@
[[package]]
name = "polkadot-node-core-pvf"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"always-assert",
"assert_matches",
@@ -7245,8 +7279,8 @@
[[package]]
name = "polkadot-node-core-runtime-api"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"memory-lru",
@@ -7263,8 +7297,8 @@
[[package]]
name = "polkadot-node-jaeger"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"async-std",
"lazy_static",
@@ -7281,8 +7315,8 @@
[[package]]
name = "polkadot-node-metrics"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
@@ -7292,8 +7326,8 @@
[[package]]
name = "polkadot-node-network-protocol"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"async-trait",
"derive_more",
@@ -7304,14 +7338,14 @@
"polkadot-primitives",
"sc-authority-discovery",
"sc-network",
- "strum 0.21.0",
+ "strum 0.22.0",
"thiserror",
]
[[package]]
name = "polkadot-node-primitives"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bounded-vec",
"futures 0.3.17",
@@ -7332,8 +7366,8 @@
[[package]]
name = "polkadot-node-subsystem"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"polkadot-node-jaeger",
"polkadot-node-subsystem-types",
@@ -7342,8 +7376,8 @@
[[package]]
name = "polkadot-node-subsystem-types"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"derive_more",
"futures 0.3.17",
@@ -7361,14 +7395,14 @@
[[package]]
name = "polkadot-node-subsystem-util"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"async-trait",
"derive_more",
"futures 0.3.17",
"itertools",
- "lru",
+ "lru 0.7.0",
"metered-channel",
"parity-scale-codec",
"pin-project 1.0.8",
@@ -7388,12 +7422,12 @@
[[package]]
name = "polkadot-overseer"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
- "lru",
+ "lru 0.7.0",
"parity-util-mem",
"parking_lot 0.11.2",
"polkadot-node-metrics",
@@ -7409,8 +7443,8 @@
[[package]]
name = "polkadot-overseer-gen"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -7426,8 +7460,8 @@
[[package]]
name = "polkadot-overseer-gen-proc-macro"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"proc-macro-crate 1.1.0",
"proc-macro2",
@@ -7437,8 +7471,8 @@
[[package]]
name = "polkadot-parachain"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"derive_more",
"frame-support",
@@ -7454,8 +7488,8 @@
[[package]]
name = "polkadot-primitives"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bitvec 0.20.4",
"frame-system",
@@ -7484,8 +7518,8 @@
[[package]]
name = "polkadot-rpc"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"beefy-gadget",
"beefy-gadget-rpc",
@@ -7515,8 +7549,8 @@
[[package]]
name = "polkadot-runtime"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"beefy-primitives",
"bitvec 0.20.4",
@@ -7592,8 +7626,8 @@
[[package]]
name = "polkadot-runtime-common"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"beefy-primitives",
"bitvec 0.20.4",
@@ -7639,8 +7673,8 @@
[[package]]
name = "polkadot-runtime-parachains"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"bitflags",
"bitvec 0.20.4",
@@ -7678,8 +7712,8 @@
[[package]]
name = "polkadot-service"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"async-trait",
"beefy-gadget",
@@ -7690,7 +7724,7 @@
"kusama-runtime",
"kvdb",
"kvdb-rocksdb",
- "lru",
+ "lru 0.7.0",
"pallet-babe",
"pallet-im-online",
"pallet-mmr-primitives",
@@ -7776,8 +7810,8 @@
[[package]]
name = "polkadot-statement-distribution"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"arrayvec 0.5.2",
"derive_more",
@@ -7797,8 +7831,8 @@
[[package]]
name = "polkadot-statement-table"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"parity-scale-codec",
"polkadot-primitives",
@@ -7807,8 +7841,8 @@
[[package]]
name = "polkadot-test-runtime"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"beefy-primitives",
"bitvec 0.20.4",
@@ -7868,8 +7902,8 @@
[[package]]
name = "polkadot-test-service"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"frame-benchmarking",
"frame-system",
@@ -8079,15 +8113,15 @@
[[package]]
name = "prometheus"
-version = "0.11.0"
+version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200d"
+checksum = "5986aa8d62380092d2f50f8b1cdba9cb9b6731ffd4b25b51fd126b6c3e05b99c"
dependencies = [
"cfg-if 1.0.0",
"fnv",
"lazy_static",
+ "memchr",
"parking_lot 0.11.2",
- "regex",
"thiserror",
]
@@ -8404,7 +8438,6 @@
dependencies = [
"log",
"rustc-hash",
- "serde",
"smallvec",
]
@@ -8449,7 +8482,7 @@
[[package]]
name = "remote-externalities"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"env_logger 0.9.0",
"jsonrpsee-proc-macros",
@@ -8537,8 +8570,8 @@
[[package]]
name = "rococo-runtime"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"beefy-primitives",
"bp-messages",
@@ -8727,7 +8760,7 @@
[[package]]
name = "sc-allocator"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"log",
"sp-core",
@@ -8738,7 +8771,7 @@
[[package]]
name = "sc-authority-discovery"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"derive_more",
@@ -8765,7 +8798,7 @@
[[package]]
name = "sc-basic-authorship"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
@@ -8788,7 +8821,7 @@
[[package]]
name = "sc-block-builder"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"sc-client-api",
@@ -8804,7 +8837,7 @@
[[package]]
name = "sc-chain-spec"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"impl-trait-for-tuples 0.2.1",
"parity-scale-codec",
@@ -8820,7 +8853,7 @@
[[package]]
name = "sc-chain-spec-derive"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"proc-macro-crate 1.1.0",
"proc-macro2",
@@ -8831,7 +8864,7 @@
[[package]]
name = "sc-cli"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"chrono",
"fdlimit",
@@ -8869,7 +8902,7 @@
[[package]]
name = "sc-client-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"fnv",
"futures 0.3.17",
@@ -8897,7 +8930,7 @@
[[package]]
name = "sc-client-db"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"hash-db",
"kvdb",
@@ -8922,7 +8955,7 @@
[[package]]
name = "sc-consensus"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -8946,7 +8979,7 @@
[[package]]
name = "sc-consensus-aura"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"derive_more",
@@ -8975,7 +9008,7 @@
[[package]]
name = "sc-consensus-babe"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"derive_more",
@@ -9018,7 +9051,7 @@
[[package]]
name = "sc-consensus-babe-rpc"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"derive_more",
"futures 0.3.17",
@@ -9042,7 +9075,7 @@
[[package]]
name = "sc-consensus-epochs"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"fork-tree",
"parity-scale-codec",
@@ -9055,7 +9088,7 @@
[[package]]
name = "sc-consensus-slots"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -9081,7 +9114,7 @@
[[package]]
name = "sc-consensus-uncles"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"sc-client-api",
"sp-authorship",
@@ -9092,7 +9125,7 @@
[[package]]
name = "sc-executor"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"lazy_static",
"libsecp256k1 0.6.0",
@@ -9118,7 +9151,7 @@
[[package]]
name = "sc-executor-common"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"derive_more",
"environmental",
@@ -9136,7 +9169,7 @@
[[package]]
name = "sc-executor-wasmi"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"log",
"parity-scale-codec",
@@ -9152,7 +9185,7 @@
[[package]]
name = "sc-executor-wasmtime"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"cfg-if 1.0.0",
"libc",
@@ -9170,7 +9203,7 @@
[[package]]
name = "sc-finality-grandpa"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"derive_more",
@@ -9207,7 +9240,7 @@
[[package]]
name = "sc-finality-grandpa-rpc"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"derive_more",
"finality-grandpa",
@@ -9231,7 +9264,7 @@
[[package]]
name = "sc-informant"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"ansi_term 0.12.1",
"futures 0.3.17",
@@ -9248,7 +9281,7 @@
[[package]]
name = "sc-keystore"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"derive_more",
@@ -9263,7 +9296,7 @@
[[package]]
name = "sc-light"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"hash-db",
"parity-scale-codec",
@@ -9281,7 +9314,7 @@
[[package]]
name = "sc-network"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-std",
"async-trait",
@@ -9301,7 +9334,7 @@
"linked-hash-map",
"linked_hash_set",
"log",
- "lru",
+ "lru 0.6.6",
"parity-scale-codec",
"parking_lot 0.11.2",
"pin-project 1.0.8",
@@ -9332,13 +9365,13 @@
[[package]]
name = "sc-network-gossip"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
"libp2p",
"log",
- "lru",
+ "lru 0.6.6",
"sc-network",
"sp-runtime",
"substrate-prometheus-endpoint",
@@ -9348,7 +9381,7 @@
[[package]]
name = "sc-offchain"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"bytes 1.1.0",
"fnv",
@@ -9375,7 +9408,7 @@
[[package]]
name = "sc-peerset"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"libp2p",
@@ -9388,7 +9421,7 @@
[[package]]
name = "sc-proposer-metrics"
version = "0.9.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"log",
"substrate-prometheus-endpoint",
@@ -9397,7 +9430,7 @@
[[package]]
name = "sc-rpc"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"hash-db",
@@ -9428,7 +9461,7 @@
[[package]]
name = "sc-rpc-api"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"jsonrpc-core",
@@ -9453,7 +9486,7 @@
[[package]]
name = "sc-rpc-server"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"jsonrpc-core",
@@ -9470,7 +9503,7 @@
[[package]]
name = "sc-service"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"directories",
@@ -9535,7 +9568,7 @@
[[package]]
name = "sc-state-db"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"log",
"parity-scale-codec",
@@ -9549,7 +9582,7 @@
[[package]]
name = "sc-sync-state-rpc"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"jsonrpc-core",
"jsonrpc-core-client",
@@ -9571,7 +9604,7 @@
[[package]]
name = "sc-telemetry"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"chrono",
"futures 0.3.17",
@@ -9589,10 +9622,11 @@
[[package]]
name = "sc-tracing"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"ansi_term 0.12.1",
"atty",
+ "chrono",
"lazy_static",
"log",
"once_cell",
@@ -9618,7 +9652,7 @@
[[package]]
name = "sc-tracing-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"proc-macro-crate 1.1.0",
"proc-macro2",
@@ -9629,7 +9663,7 @@
[[package]]
name = "sc-transaction-pool"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"intervalier",
@@ -9656,7 +9690,7 @@
[[package]]
name = "sc-transaction-pool-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"derive_more",
"futures 0.3.17",
@@ -9670,7 +9704,7 @@
[[package]]
name = "sc-utils"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
@@ -9743,26 +9777,6 @@
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
-
-[[package]]
-name = "scroll"
-version = "0.10.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fda28d4b4830b807a8b43f7b0e6b5df875311b3e7621d84577188c175b6ec1ec"
-dependencies = [
- "scroll_derive",
-]
-
-[[package]]
-name = "scroll_derive"
-version = "0.10.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aaaae8f38bb311444cfb7f1979af0bc9240d95795f75f9ceddf6a59b79ceffa0"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
[[package]]
name = "sct"
@@ -9776,9 +9790,9 @@
[[package]]
name = "secrecy"
-version = "0.7.0"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0673d6a6449f5e7d12a1caf424fd9363e2af3a4953023ed455e3c4beef4597c0"
+checksum = "9bd1c54ea06cfd2f6b63219704de0b9b4f72dcc2b8fdef820be6cd799780e91e"
dependencies = [
"zeroize",
]
@@ -10014,18 +10028,9 @@
checksum = "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5"
[[package]]
-name = "slog"
-version = "2.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8347046d4ebd943127157b94d63abb990fcf729dc4e9978927fdf4ac3c998d06"
-dependencies = [
- "erased-serde",
-]
-
-[[package]]
name = "slot-range-helper"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"enumn",
"parity-scale-codec",
@@ -10128,7 +10133,7 @@
[[package]]
name = "sp-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"hash-db",
"log",
@@ -10145,7 +10150,7 @@
[[package]]
name = "sp-api-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"blake2-rfc",
"proc-macro-crate 1.1.0",
@@ -10157,7 +10162,7 @@
[[package]]
name = "sp-application-crypto"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"scale-info",
@@ -10170,7 +10175,7 @@
[[package]]
name = "sp-arithmetic"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"integer-sqrt",
"num-traits",
@@ -10185,7 +10190,7 @@
[[package]]
name = "sp-authority-discovery"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"scale-info",
@@ -10198,7 +10203,7 @@
[[package]]
name = "sp-authorship"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"parity-scale-codec",
@@ -10210,7 +10215,7 @@
[[package]]
name = "sp-block-builder"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"sp-api",
@@ -10222,11 +10227,11 @@
[[package]]
name = "sp-blockchain"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"log",
- "lru",
+ "lru 0.6.6",
"parity-scale-codec",
"parking_lot 0.11.2",
"sp-api",
@@ -10240,7 +10245,7 @@
[[package]]
name = "sp-consensus"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -10259,7 +10264,7 @@
[[package]]
name = "sp-consensus-aura"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"parity-scale-codec",
@@ -10277,7 +10282,7 @@
[[package]]
name = "sp-consensus-babe"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"merlin",
@@ -10300,7 +10305,7 @@
[[package]]
name = "sp-consensus-slots"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"scale-info",
@@ -10311,7 +10316,7 @@
[[package]]
name = "sp-consensus-vrf"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"schnorrkel",
@@ -10323,7 +10328,7 @@
[[package]]
name = "sp-core"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"base58",
"blake2-rfc",
@@ -10356,6 +10361,7 @@
"sp-runtime-interface",
"sp-std",
"sp-storage",
+ "ss58-registry",
"substrate-bip39",
"thiserror",
"tiny-bip39",
@@ -10368,7 +10374,7 @@
[[package]]
name = "sp-database"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"kvdb",
"parking_lot 0.11.2",
@@ -10377,7 +10383,7 @@
[[package]]
name = "sp-debug-derive"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"proc-macro2",
"quote",
@@ -10387,7 +10393,7 @@
[[package]]
name = "sp-externalities"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"environmental",
"parity-scale-codec",
@@ -10398,7 +10404,7 @@
[[package]]
name = "sp-finality-grandpa"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"finality-grandpa",
"log",
@@ -10416,7 +10422,7 @@
[[package]]
name = "sp-inherents"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"impl-trait-for-tuples 0.2.1",
@@ -10430,7 +10436,7 @@
[[package]]
name = "sp-io"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"hash-db",
@@ -10454,7 +10460,7 @@
[[package]]
name = "sp-keyring"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"lazy_static",
"sp-core",
@@ -10465,7 +10471,7 @@
[[package]]
name = "sp-keystore"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"derive_more",
@@ -10482,7 +10488,7 @@
[[package]]
name = "sp-maybe-compressed-blob"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"zstd",
]
@@ -10490,7 +10496,7 @@
[[package]]
name = "sp-npos-elections"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"scale-info",
@@ -10505,7 +10511,7 @@
[[package]]
name = "sp-npos-elections-solution-type"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"proc-macro-crate 1.1.0",
"proc-macro2",
@@ -10516,7 +10522,7 @@
[[package]]
name = "sp-offchain"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"sp-api",
"sp-core",
@@ -10526,7 +10532,7 @@
[[package]]
name = "sp-panic-handler"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"backtrace",
]
@@ -10534,7 +10540,7 @@
[[package]]
name = "sp-rpc"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"rustc-hash",
"serde",
@@ -10544,7 +10550,7 @@
[[package]]
name = "sp-runtime"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"either",
"hash256-std-hasher",
@@ -10566,7 +10572,7 @@
[[package]]
name = "sp-runtime-interface"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"impl-trait-for-tuples 0.2.1",
"parity-scale-codec",
@@ -10583,7 +10589,7 @@
[[package]]
name = "sp-runtime-interface-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"Inflector",
"proc-macro-crate 1.1.0",
@@ -10595,7 +10601,7 @@
[[package]]
name = "sp-sandbox"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"log",
"parity-scale-codec",
@@ -10609,7 +10615,7 @@
[[package]]
name = "sp-serializer"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"serde",
"serde_json",
@@ -10618,7 +10624,7 @@
[[package]]
name = "sp-session"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"scale-info",
@@ -10632,7 +10638,7 @@
[[package]]
name = "sp-staking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"scale-info",
@@ -10643,7 +10649,7 @@
[[package]]
name = "sp-state-machine"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"hash-db",
"log",
@@ -10666,12 +10672,12 @@
[[package]]
name = "sp-std"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
[[package]]
name = "sp-storage"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"impl-serde",
"parity-scale-codec",
@@ -10684,7 +10690,7 @@
[[package]]
name = "sp-tasks"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"log",
"sp-core",
@@ -10697,7 +10703,7 @@
[[package]]
name = "sp-timestamp"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"futures-timer 3.0.2",
@@ -10713,15 +10719,9 @@
[[package]]
name = "sp-tracing"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
- "erased-serde",
- "log",
"parity-scale-codec",
- "parking_lot 0.10.2",
- "serde",
- "serde_json",
- "slog",
"sp-std",
"tracing",
"tracing-core",
@@ -10731,7 +10731,7 @@
[[package]]
name = "sp-transaction-pool"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"sp-api",
"sp-runtime",
@@ -10740,7 +10740,7 @@
[[package]]
name = "sp-transaction-storage-proof"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"log",
@@ -10756,7 +10756,7 @@
[[package]]
name = "sp-trie"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"hash-db",
"memory-db",
@@ -10771,7 +10771,7 @@
[[package]]
name = "sp-version"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"impl-serde",
"parity-scale-codec",
@@ -10787,7 +10787,7 @@
[[package]]
name = "sp-version-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"parity-scale-codec",
"proc-macro2",
@@ -10798,7 +10798,7 @@
[[package]]
name = "sp-wasm-interface"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"impl-trait-for-tuples 0.2.1",
"parity-scale-codec",
@@ -10813,6 +10813,20 @@
checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
[[package]]
+name = "ss58-registry"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb102b328df61c67f8ccf8471b29c31c7d6da646a867aff95fe8bff386fe7c4d"
+dependencies = [
+ "Inflector",
+ "proc-macro2",
+ "quote",
+ "serde",
+ "serde_json",
+ "unicode-xid",
+]
+
+[[package]]
name = "stable_deref_trait"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -10912,8 +10926,14 @@
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aaf86bbcfd1fa9670b7a129f64fc0c9fcbbfe4f1bc4210e9e98fe71ffc12cde2"
+
+[[package]]
+name = "strum"
+version = "0.22.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f7ac893c7d471c8a21f31cfe213ec4f6d9afeed25537c772e08ef3f005f8729e"
dependencies = [
- "strum_macros 0.21.1",
+ "strum_macros 0.22.0",
]
[[package]]
@@ -10941,6 +10961,18 @@
]
[[package]]
+name = "strum_macros"
+version = "0.22.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
name = "substrate-bip39"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -10956,7 +10988,15 @@
[[package]]
name = "substrate-build-script-utils"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
+dependencies = [
+ "platforms",
+]
+
+[[package]]
+name = "substrate-build-script-utils"
+version = "3.0.0"
+source = "git+https://github.com/paritytech/substrate.git#969a70d1864fc5d5f6c378bcfd03f1b3ea434049"
dependencies = [
"platforms",
]
@@ -10964,7 +11004,7 @@
[[package]]
name = "substrate-frame-rpc-system"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"frame-system-rpc-runtime-api",
"futures 0.3.17",
@@ -10986,7 +11026,7 @@
[[package]]
name = "substrate-prometheus-endpoint"
version = "0.9.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-std",
"derive_more",
@@ -11000,7 +11040,7 @@
[[package]]
name = "substrate-test-client"
version = "2.0.1"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -11027,7 +11067,7 @@
[[package]]
name = "substrate-test-utils"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"futures 0.3.17",
"substrate-test-utils-derive",
@@ -11037,7 +11077,7 @@
[[package]]
name = "substrate-test-utils-derive"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"proc-macro-crate 1.1.0",
"proc-macro2",
@@ -11048,7 +11088,7 @@
[[package]]
name = "substrate-wasm-builder"
version = "5.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"ansi_term 0.12.1",
"build-helper",
@@ -11529,7 +11569,7 @@
[[package]]
name = "try-runtime-cli"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#57346f6b24875f8935280dba51fa8ab0a9ba1e39"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.12#d76f39995315ec36980908e4b99709bd14927044"
dependencies = [
"jsonrpsee-ws-client",
"log",
@@ -11895,15 +11935,15 @@
[[package]]
name = "wasmparser"
-version = "0.79.0"
+version = "0.80.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b5894be15a559c85779254700e1d35f02f843b5a69152e5c82c626d9fd66c0e"
+checksum = "449167e2832691a1bff24cde28d2804e90e09586a448c8e76984792c44334a6b"
[[package]]
name = "wasmtime"
-version = "0.29.0"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8bbb8a082a8ef50f7eeb8b82dda9709ef1e68963ea3c94e45581644dd4041835"
+checksum = "899b1e5261e3d3420860dacfb952871ace9d7ba9f953b314f67aaf9f8e2a4d89"
dependencies = [
"anyhow",
"backtrace",
@@ -11914,27 +11954,28 @@
"lazy_static",
"libc",
"log",
+ "object",
"paste",
"psm",
+ "rayon",
"region",
"rustc-demangle",
"serde",
- "smallvec",
"target-lexicon",
"wasmparser",
"wasmtime-cache",
+ "wasmtime-cranelift",
"wasmtime-environ",
"wasmtime-jit",
- "wasmtime-profiling",
"wasmtime-runtime",
"winapi 0.3.9",
]
[[package]]
name = "wasmtime-cache"
-version = "0.29.0"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d73391579ca7f24573138ef768b73b2aed5f9d542385c64979b65d60d0912399"
+checksum = "e2493b81d7a9935f7af15e06beec806f256bc974a90a843685f3d61f2fc97058"
dependencies = [
"anyhow",
"base64 0.13.0",
@@ -11953,26 +11994,16 @@
[[package]]
name = "wasmtime-cranelift"
-version = "0.29.0"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81c6f5ae9205382345c7cd7454932a906186836999a2161c385e38a15f52e1fe"
+checksum = "99706bacdf5143f7f967d417f0437cce83a724cf4518cb1a3ff40e519d793021"
dependencies = [
+ "anyhow",
"cranelift-codegen",
"cranelift-entity",
"cranelift-frontend",
+ "cranelift-native",
"cranelift-wasm",
- "target-lexicon",
- "wasmparser",
- "wasmtime-environ",
-]
-
-[[package]]
-name = "wasmtime-debug"
-version = "0.29.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c69e08f55e12f15f50b1b533bc3626723e7224254a065de6576934c86258c9e8"
-dependencies = [
- "anyhow",
"gimli",
"more-asserts",
"object",
@@ -11984,94 +12015,55 @@
[[package]]
name = "wasmtime-environ"
-version = "0.29.0"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "005d93174040af37fb8625f891cd9827afdad314261f7ec4ee61ec497d6e9d3c"
+checksum = "ac42cb562a2f98163857605f02581d719a410c5abe93606128c59a10e84de85b"
dependencies = [
+ "anyhow",
"cfg-if 1.0.0",
- "cranelift-codegen",
"cranelift-entity",
- "cranelift-wasm",
"gimli",
"indexmap",
"log",
"more-asserts",
+ "object",
"serde",
+ "target-lexicon",
"thiserror",
"wasmparser",
+ "wasmtime-types",
]
[[package]]
name = "wasmtime-jit"
-version = "0.29.0"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0bf1dfb213a35d8f21aefae40e597fe72778a907011ffdff7affb029a02af9a"
+checksum = "24f46dd757225f29a419be415ea6fb8558df9b0194f07e3a6a9c99d0e14dd534"
dependencies = [
"addr2line",
"anyhow",
+ "bincode",
"cfg-if 1.0.0",
- "cranelift-codegen",
- "cranelift-entity",
- "cranelift-frontend",
- "cranelift-native",
- "cranelift-wasm",
"gimli",
+ "libc",
"log",
"more-asserts",
"object",
- "rayon",
"region",
"serde",
"target-lexicon",
"thiserror",
"wasmparser",
- "wasmtime-cranelift",
- "wasmtime-debug",
"wasmtime-environ",
- "wasmtime-obj",
- "wasmtime-profiling",
"wasmtime-runtime",
"winapi 0.3.9",
-]
-
-[[package]]
-name = "wasmtime-obj"
-version = "0.29.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d231491878e710c68015228c9f9fc5955fe5c96dbf1485c15f7bed55b622c83c"
-dependencies = [
- "anyhow",
- "more-asserts",
- "object",
- "target-lexicon",
- "wasmtime-debug",
- "wasmtime-environ",
]
[[package]]
-name = "wasmtime-profiling"
-version = "0.29.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "21486cfb5255c2069666c1f116f9e949d4e35c9a494f11112fa407879e42198d"
-dependencies = [
- "anyhow",
- "cfg-if 1.0.0",
- "gimli",
- "lazy_static",
- "libc",
- "object",
- "scroll",
- "serde",
- "target-lexicon",
- "wasmtime-environ",
- "wasmtime-runtime",
-]
-
-[[package]]
name = "wasmtime-runtime"
-version = "0.29.0"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7ddfdf32e0a20d81f48be9dacd31612bc61de5a174d1356fef806d300f507de"
+checksum = "0122215a44923f395487048cb0a1d60b5b32c73aab15cf9364b798dbaff0996f"
dependencies = [
"anyhow",
"backtrace",
@@ -12092,6 +12084,18 @@
]
[[package]]
+name = "wasmtime-types"
+version = "0.30.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9b01caf8a204ef634ebac99700e77ba716d3ebbb68a1abbc2ceb6b16dbec9e4"
+dependencies = [
+ "cranelift-entity",
+ "serde",
+ "thiserror",
+ "wasmparser",
+]
+
+[[package]]
name = "web-sys"
version = "0.3.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -12131,8 +12135,8 @@
[[package]]
name = "westend-runtime"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"beefy-primitives",
"bitvec 0.20.4",
@@ -12311,8 +12315,8 @@
[[package]]
name = "xcm"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"derivative",
"impl-trait-for-tuples 0.2.1",
@@ -12324,8 +12328,8 @@
[[package]]
name = "xcm-builder"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"frame-support",
"frame-system",
@@ -12344,8 +12348,8 @@
[[package]]
name = "xcm-executor"
-version = "0.9.11"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+version = "0.9.12"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -12363,7 +12367,7 @@
[[package]]
name = "xcm-procedural"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#eb9f107e3a04687dcf80111563f2bcea7d5b15d3"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.12#ec34cf7e059b91609e5b3ac4ae0f604b34ce01d9"
dependencies = [
"proc-macro2",
"quote",
Dockerfile-parachaindiffbeforeafterboth--- a/Dockerfile-parachain
+++ b/Dockerfile-parachain
@@ -6,7 +6,7 @@
ARG RUST_TOOLCHAIN=nightly-2021-06-28
#ARG RUST_C=1.55.0-nightly
-ARG POLKA_VERSION=v0.9.11
+ARG POLKA_VERSION=v0.9.12
ARG NFT_BRANCH=develop
#ARG USER=***
node/cli/Cargo.tomldiffbeforeafterboth--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -3,8 +3,7 @@
[build-dependencies.substrate-build-script-utils]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '3.0.0'
+bbranch = 'polkadot-v0.9.12'
################################################################################
# Substrate Dependecies
@@ -17,186 +16,150 @@
[dependencies.frame-benchmarking]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-benchmarking-cli]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-transaction-payment-rpc]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.substrate-prometheus-endpoint]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.9.0'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-basic-authorship]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-chain-spec]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-cli]
features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-client-api]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-consensus]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-consensus-aura]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-executor]
features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-keystore]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-rpc]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-rpc-api]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-service]
features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-telemetry]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-transaction-pool]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-tracing]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-block-builder]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-api]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-blockchain]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-consensus]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-consensus-aura]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-core]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-inherents]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-keystore]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-offchain]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-runtime]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-session]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-timestamp]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-transaction-pool]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-trie]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.substrate-frame-rpc-system]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sc-network]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.serde]
features = ['derive']
@@ -211,58 +174,58 @@
[dependencies.cumulus-client-consensus-aura]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
[dependencies.cumulus-client-consensus-common]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
[dependencies.cumulus-client-collator]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
[dependencies.cumulus-client-cli]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
[dependencies.cumulus-client-network]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
[dependencies.cumulus-primitives-core]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
[dependencies.cumulus-primitives-parachain-inherent]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
[dependencies.cumulus-client-service]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
################################################################################
# Polkadot dependencies
[dependencies.polkadot-primitives]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
[dependencies.polkadot-service]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
[dependencies.polkadot-cli]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
[dependencies.polkadot-test-service]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
[dependencies.polkadot-parachain]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
################################################################################
@@ -277,7 +240,7 @@
default-features = false
################################################################################
-# Package
+# Package
[package]
authors = ['Unique Network <support@uniquenetwork.io>']
@@ -305,13 +268,13 @@
jsonrpc-core = '18.0.0'
jsonrpc-pubsub = "18.0.0"
-fc-rpc-core = { version = "1.1.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fc-consensus = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fc-mapping-sync = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fc-rpc = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fc-db = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fp-rpc = { version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-pallet-ethereum = { version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fc-rpc-core = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fc-consensus = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fc-mapping-sync = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fc-rpc = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fc-db = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fp-rpc = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
nft-rpc = { path = "../rpc" }
node/cli/src/service.rsdiffbeforeafterboth--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -9,7 +9,6 @@
use std::sync::Arc;
use std::sync::Mutex;
use std::collections::BTreeMap;
-use std::collections::HashMap;
use std::time::Duration;
use futures::StreamExt;
@@ -40,7 +39,6 @@
// Frontier Imports
use fc_rpc_core::types::FilterPool;
-use fc_rpc_core::types::PendingTransactions;
use fc_mapping_sync::{MappingSyncWorker, SyncStrategy};
// Runtime type overrides
@@ -108,7 +106,6 @@
sc_transaction_pool::FullPool<Block, FullClient>,
(
Option<Telemetry>,
- PendingTransactions,
Option<FilterPool>,
Arc<fc_db::Backend<Block>>,
Option<TelemetryWorkerHandle>,
@@ -178,8 +175,6 @@
task_manager.spawn_essential_handle(),
client.clone(),
);
-
- let pending_transactions: PendingTransactions = Some(Arc::new(Mutex::new(HashMap::new())));
let filter_pool: Option<FilterPool> = Some(Arc::new(Mutex::new(BTreeMap::new())));
@@ -202,7 +197,6 @@
select_chain,
other: (
telemetry,
- pending_transactions,
filter_pool,
frontier_backend,
telemetry_worker_handle,
@@ -251,13 +245,7 @@
let parachain_config = prepare_node_config(parachain_config);
let params = new_partial::<BIQ>(¶chain_config, build_import_queue)?;
- let (
- mut telemetry,
- pending_transactions,
- filter_pool,
- frontier_backend,
- telemetry_worker_handle,
- ) = params.other;
+ let (mut telemetry, filter_pool, frontier_backend, telemetry_worker_handle) = params.other;
let relay_chain_full_node =
cumulus_client_service::build_polkadot_full_node(polkadot_config, telemetry_worker_handle)
@@ -308,18 +296,18 @@
deny_unsafe,
client: rpc_client.clone(),
pool: rpc_pool.clone(),
+ graph: rpc_pool.pool().clone(),
// TODO: Unhardcode
enable_dev_signer: false,
filter_pool: filter_pool.clone(),
network: rpc_network.clone(),
- pending_transactions: pending_transactions.clone(),
select_chain: select_chain.clone(),
is_authority,
// TODO: Unhardcode
max_past_logs: 10000,
};
- Ok(nft_rpc::create_full::<_, _, _, RuntimeApi, _>(
+ Ok(nft_rpc::create_full::<_, _, _, _, RuntimeApi, _>(
full_deps,
subscription_executor.clone(),
))
node/rpc/Cargo.tomldiffbeforeafterboth--- a/node/rpc/Cargo.toml
+++ b/node/rpc/Cargo.toml
@@ -13,40 +13,40 @@
futures = { version = "0.3.17", features = ["compat"] }
jsonrpc-core = "18.0.0"
jsonrpc-pubsub = "18.0.0"
-# pallet-contracts-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.9' }
-pallet-transaction-payment-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-pallet-transaction-payment-rpc-runtime-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-client-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-consensus-aura = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-consensus-epochs = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-finality-grandpa = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-finality-grandpa-rpc = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-keystore = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-network = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-rpc-api = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-service = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-block-builder = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-blockchain = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-consensus = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-consensus-aura = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-core = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-offchain = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-runtime = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-storage = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-session = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-transaction-pool = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sc-transaction-pool = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-substrate-frame-rpc-system = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+# pallet-contracts-rpc = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+pallet-transaction-payment-rpc = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+pallet-transaction-payment-rpc-runtime-api = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-client-api = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-consensus-aura = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-consensus-epochs = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-finality-grandpa = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-finality-grandpa-rpc = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-keystore = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-network = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-rpc-api = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-rpc = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-service = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-api = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-block-builder = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-blockchain = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-consensus = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-consensus-aura = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-core = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-offchain = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-runtime = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-storage = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-session = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-transaction-pool = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sc-transaction-pool = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+substrate-frame-rpc-system = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
tokio = { version = "0.2.25", features = ["macros", "sync"] }
-pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fc-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fc-rpc-core = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fc-db = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fc-mapping-sync = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fc-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fc-rpc-core = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fc-db = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fc-mapping-sync = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
pallet-nft = { path = "../../pallets/nft" }
nft-runtime = { path = "../../runtime" }
node/rpc/src/lib.rsdiffbeforeafterboth--- a/node/rpc/src/lib.rs
+++ b/node/rpc/src/lib.rs
@@ -1,6 +1,8 @@
use nft_runtime::{Hash, AccountId, Index, opaque::Block, BlockNumber, Balance};
-use fc_rpc::{OverrideHandle, RuntimeApiStorageOverride, SchemaV1Override, StorageOverride};
-use fc_rpc_core::types::{FilterPool, PendingTransactions};
+use fc_rpc::{
+ EthBlockDataCache, OverrideHandle, RuntimeApiStorageOverride, SchemaV1Override, StorageOverride,
+};
+use fc_rpc_core::types::FilterPool;
use jsonrpc_pubsub::manager::SubscriptionManager;
use pallet_ethereum::EthereumStorageSchema;
use sc_client_api::{
@@ -14,6 +16,7 @@
use sc_network::NetworkService;
use sc_rpc::SubscriptionTaskExecutor;
pub use sc_rpc_api::DenyUnsafe;
+use sc_transaction_pool::{ChainApi, Pool};
use sp_api::ProvideRuntimeApi;
use sp_block_builder::BlockBuilder;
use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
@@ -51,11 +54,13 @@
}
/// Full client dependencies.
-pub struct FullDeps<C, P, SC> {
+pub struct FullDeps<C, P, SC, CA: ChainApi> {
/// The client instance to use.
pub client: Arc<C>,
/// Transaction pool instance.
pub pool: Arc<P>,
+ /// Graph pool instance.
+ pub graph: Arc<Pool<CA>>,
/// The SelectChain Strategy
pub select_chain: SC,
/// The Node authority flag
@@ -66,8 +71,6 @@
pub network: Arc<NetworkService<Block, Hash>>,
/// Whether to deny unsafe calls
pub deny_unsafe: DenyUnsafe,
- /// Ethereum pending transactions.
- pub pending_transactions: PendingTransactions,
/// EthFilterApi pool.
pub filter_pool: Option<FilterPool>,
/// Backend.
@@ -110,8 +113,8 @@
}
/// Instantiate all Full RPC extensions.
-pub fn create_full<C, P, SC, A, B>(
- deps: FullDeps<C, P, SC>,
+pub fn create_full<C, P, SC, CA, A, B>(
+ deps: FullDeps<C, P, SC, CA>,
subscription_task_executor: SubscriptionTaskExecutor,
) -> jsonrpc_core::IoHandler<sc_rpc_api::Metadata>
where
@@ -125,10 +128,11 @@
C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
C::Api: fp_rpc::EthereumRuntimeRPCApi<Block>,
C::Api: pallet_nft::NftApi<Block>,
- P: TransactionPool<Block = Block> + 'static,
- SC: SelectChain<Block> + 'static,
B: sc_client_api::Backend<Block> + Send + Sync + 'static,
B::State: sc_client_api::backend::StateBackend<sp_runtime::traits::HashFor<Block>>,
+ SC: SelectChain<Block> + 'static,
+ P: TransactionPool<Block = Block> + 'static,
+ CA: ChainApi<Block = Block> + 'static,
{
use fc_rpc::{
EthApi, EthApiServer, EthDevSigner, EthFilterApi, EthFilterApiServer, EthPubSubApi,
@@ -143,12 +147,12 @@
let FullDeps {
client,
pool,
+ graph,
select_chain: _,
enable_dev_signer,
is_authority,
network,
deny_unsafe,
- pending_transactions,
filter_pool,
backend,
max_past_logs,
@@ -184,17 +188,20 @@
fallback: Box::new(RuntimeApiStorageOverride::new(client.clone())),
});
+ let block_data_cache = Arc::new(EthBlockDataCache::new(50, 50));
+
io.extend_with(EthApiServer::to_delegate(EthApi::new(
client.clone(),
pool.clone(),
+ graph,
nft_runtime::TransactionConverter,
network.clone(),
- pending_transactions,
signers,
overrides.clone(),
backend.clone(),
is_authority,
max_past_logs,
+ block_data_cache.clone(),
)));
if let Some(filter_pool) = filter_pool {
@@ -205,6 +212,7 @@
500_usize, // max stored filters
overrides.clone(),
max_past_logs,
+ block_data_cache.clone(),
)));
}
pallets/contract-helpers/Cargo.tomldiffbeforeafterboth--- a/pallets/contract-helpers/Cargo.toml
+++ b/pallets/contract-helpers/Cargo.toml
@@ -16,11 +16,11 @@
[dependencies]
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-pallet-contracts = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+pallet-contracts = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
[features]
default = ["std"]
pallets/evm-coder-substrate/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-coder-substrate/Cargo.toml
+++ b/pallets/evm-coder-substrate/Cargo.toml
@@ -5,14 +5,14 @@
[dependencies]
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
ethereum = { version = "0.9", git = "https://github.com/purestake/ethereum", branch = "joshy-scale-info", default-features = false }
evm-coder = { default-features = false, path = "../../crates/evm-coder" }
-pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
[dependencies.codec]
default-features = false
pallets/evm-contract-helpers/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-contract-helpers/Cargo.toml
+++ b/pallets/evm-contract-helpers/Cargo.toml
@@ -5,14 +5,14 @@
[dependencies]
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
evm-coder = { default-features = false, path = '../../crates/evm-coder' }
pallet-evm-coder-substrate = { default-features = false, path = '../../pallets/evm-coder-substrate' }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
up-sponsorship = { default-features = false, path = '../../primitives/sponsorship' }
log = "0.4.14"
pallets/evm-migration/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-migration/Cargo.toml
+++ b/pallets/evm-migration/Cargo.toml
@@ -5,15 +5,15 @@
[dependencies]
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-benchmarking = { default-features = false, version = '4.0.0-dev', optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fp-evm = { default-features = false, version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-io = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
[dependencies.codec]
default-features = false
pallets/evm-transaction-payment/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-transaction-payment/Cargo.toml
+++ b/pallets/evm-transaction-payment/Cargo.toml
@@ -5,15 +5,15 @@
[dependencies]
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fp-evm = { default-features = false, version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-io = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
up-sponsorship = { default-features = false, path = '../../primitives/sponsorship' }
[dependencies.codec]
pallets/evm-transaction-payment/src/lib.rsdiffbeforeafterboth--- a/pallets/evm-transaction-payment/src/lib.rs
+++ b/pallets/evm-transaction-payment/src/lib.rs
@@ -87,8 +87,8 @@
who: &H160,
corrected_fee: U256,
already_withdrawn: Self::LiquidityInfo,
- ) -> core::result::Result<(), pallet_evm::Error<T>> {
- EVMCurrencyAdapter::<<T as Config>::Currency, ()>::correct_and_deposit_fee(
+ ) {
+ <EVMCurrencyAdapter<<T as Config>::Currency, ()> as pallet_evm::OnChargeEVMTransaction<T>>::correct_and_deposit_fee(
&already_withdrawn.as_ref().map(|e| e.who).unwrap_or(*who),
corrected_fee,
already_withdrawn.map(|e| e.negative_imbalance),
pallets/inflation/Cargo.tomldiffbeforeafterboth--- a/pallets/inflation/Cargo.toml
+++ b/pallets/inflation/Cargo.toml
@@ -43,44 +43,37 @@
default-features = false
optional = true
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-support]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-system]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-balances]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-timestamp]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-randomness-collective-flip]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-std]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.serde]
default-features = false
@@ -90,20 +83,17 @@
[dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies]
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
pallets/nft-charge-transaction/Cargo.tomldiffbeforeafterboth--- a/pallets/nft-charge-transaction/Cargo.toml
+++ b/pallets/nft-charge-transaction/Cargo.toml
@@ -21,15 +21,15 @@
[dependencies]
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.130", default-features = false }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-pallet-balances = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-pallet-transaction-payment = { default-features = false, version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-benchmarking = { default-features = false, version = "4.0.0-dev", optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+pallet-balances = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+pallet-transaction-payment = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-io = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
pallet-nft-transaction-payment = { default-features = false, path = "../nft-transaction-payment" }
pallets/nft-transaction-payment/Cargo.tomldiffbeforeafterboth--- a/pallets/nft-transaction-payment/Cargo.toml
+++ b/pallets/nft-transaction-payment/Cargo.toml
@@ -21,14 +21,14 @@
[dependencies]
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.130", default-features = false }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-pallet-transaction-payment = { default-features = false, version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-benchmarking = { default-features = false, version = "4.0.0-dev", optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+pallet-transaction-payment = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-io = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
up-sponsorship = { default-features = false, path = "../../primitives/sponsorship", version = "0.1.0" }
pallets/nft/Cargo.tomldiffbeforeafterboth--- a/pallets/nft/Cargo.toml
+++ b/pallets/nft/Cargo.toml
@@ -56,50 +56,42 @@
default-features = false
optional = true
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-support]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-system]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-balances]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-timestamp]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-randomness-collective-flip]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-std]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-transaction-payment]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.serde]
default-features = false
@@ -109,20 +101,17 @@
[dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
################################################################################
@@ -143,7 +132,7 @@
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
ethereum = { version = "0.9", git = "https://github.com/purestake/ethereum", branch = "joshy-scale-info", default-features = false }
rlp = { default-features = false, version = "0.5.0" }
-sp-api = { default-features = false, version = '4.0.0-dev', git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.11" }
+sp-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.12" }
evm-coder = { default-features = false, path = "../../crates/evm-coder" }
pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }
@@ -151,7 +140,7 @@
"serde_no_std",
] }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fp-evm = { default-features = false, version = '3.0.0-dev', git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
hex-literal = "0.3.3"
pallets/scheduler/Cargo.tomldiffbeforeafterboth--- a/pallets/scheduler/Cargo.toml
+++ b/pallets/scheduler/Cargo.toml
@@ -13,19 +13,19 @@
serde = { version = "1.0.130", default-features = false }
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false }
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-benchmarking = { default-features = false, version = '4.0.0-dev', optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-io = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
up-sponsorship = { default-features = false, path = "../../primitives/sponsorship", version = "0.1.0" }
log = { version = "0.4.14", default-features = false }
[dev-dependencies]
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-substrate-test-utils = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+substrate-test-utils = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
[features]
default = ["std"]
primitives/nft/Cargo.tomldiffbeforeafterboth--- a/primitives/nft/Cargo.toml
+++ b/primitives/nft/Cargo.toml
@@ -16,11 +16,11 @@
serde = { version = "1.0.130", features = [
'derive',
], default-features = false, optional = true }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-core = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-std = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
-sp-runtime = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
+sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.12' }
derivative = "2.2.0"
[features]
runtime/Cargo.tomldiffbeforeafterboth--- a/runtime/Cargo.toml
+++ b/runtime/Cargo.toml
@@ -1,5 +1,5 @@
################################################################################
-# Package
+# Package
[package]
authors = ['Unique Network <support@uniquenetwork.io>']
@@ -64,6 +64,7 @@
'pallet-evm-coder-substrate/std',
'pallet-ethereum/std',
'fp-rpc/std',
+ 'fp-self-contained/std',
'parachain-info/std',
'serde',
'pallet-inflation/std',
@@ -103,39 +104,33 @@
default-features = false
git = 'https://github.com/paritytech/substrate.git'
optional = true
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-executive]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-support]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-system]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-system-benchmarking]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
optional = true
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.frame-system-rpc-runtime-api]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.hex-literal]
optional = true
@@ -150,14 +145,12 @@
[dependencies.pallet-aura]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-balances]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
# Contracts specific packages
# [dependencies.pallet-contracts]
@@ -181,122 +174,102 @@
[dependencies.pallet-randomness-collective-flip]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-sudo]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-timestamp]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-transaction-payment]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-transaction-payment-rpc-runtime-api]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-treasury]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.pallet-vesting]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-arithmetic]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-api]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-block-builder]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-consensus-aura]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '0.10.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-inherents]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-offchain]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-session]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-std]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-transaction-pool]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.sp-version]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '4.0.0-dev'
+branch = 'polkadot-v0.9.12'
[dependencies.smallvec]
version = '1.6.1'
@@ -307,47 +280,46 @@
[dependencies.parachain-info]
default-features = false
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
-version = '0.1.0'
+branch = 'polkadot-v0.9.12'
[dependencies.cumulus-pallet-aura-ext]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
default-features = false
[dependencies.cumulus-pallet-parachain-system]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
default-features = false
[dependencies.cumulus-primitives-core]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
default-features = false
[dependencies.cumulus-pallet-xcm]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
default-features = false
[dependencies.cumulus-pallet-dmp-queue]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
default-features = false
[dependencies.cumulus-pallet-xcmp-queue]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
default-features = false
[dependencies.cumulus-primitives-utility]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
default-features = false
[dependencies.cumulus-primitives-timestamp]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.11'
+branch = 'polkadot-v0.9.12'
default-features = false
################################################################################
@@ -355,27 +327,27 @@
[dependencies.polkadot-parachain]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
default-features = false
[dependencies.xcm]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
default-features = false
[dependencies.xcm-builder]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
default-features = false
[dependencies.xcm-executor]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
default-features = false
[dependencies.pallet-xcm]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.11'
+branch = 'release-v0.9.12'
default-features = false
@@ -397,14 +369,14 @@
pallet-evm-transaction-payment = { path = '../pallets/evm-transaction-payment', default-features = false }
pallet-evm-coder-substrate = { default-features = false, path = "../pallets/evm-coder-substrate" }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
-fp-rpc = { default-features = false, version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
+fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.12" }
################################################################################
# Build Dependencies
[build-dependencies.substrate-wasm-builder]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.11'
-version = '5.0.0-dev'
+branch = 'polkadot-v0.9.12'
runtime/src/lib.rsdiffbeforeafterboth1//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};19// #[cfg(any(feature = "std", test))]20// pub use sp_runtime::BuildStorage;2122use sp_runtime::{23 Permill, Perbill, Percent, create_runtime_str, generic, impl_opaque_keys,24 traits::{25 AccountIdLookup, ConvertInto, BlakeTwo256, Block as BlockT, IdentifyAccount, Verify,26 AccountIdConversion,27 },28 transaction_validity::{TransactionSource, TransactionValidity},29 ApplyExtrinsicResult, MultiSignature,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 nft_data_structs::*;58// use pallet_contracts::weights::WeightInfo;59// #[cfg(any(feature = "std", test))]60use frame_system::{61 self as 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, OnMethodCall};70use fp_rpc::TransactionStatus;71use sp_core::crypto::Public;72use sp_runtime::{73 traits::{Dispatchable},74};7576// pub use pallet_timestamp::Call as TimestampCall;77pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;7879// Polkadot imports80use pallet_xcm::XcmPassthrough;81use polkadot_parachain::primitives::Sibling;82use xcm::v1::{BodyId, Junction::*, MultiLocation, NetworkId, Junctions::*};83use xcm_builder::{84 AccountId32Aliases, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, CurrencyAdapter,85 EnsureXcmOrigin, FixedWeightBounds, IsConcrete, LocationInverter, NativeAsset,86 ParentAsSuperuser, ParentIsDefault, RelayChainAsNative, SiblingParachainAsNative,87 SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32,88 SovereignSignedViaLocation, TakeWeightCredit, UsingComponents,89};90use xcm_executor::{Config, XcmExecutor};9192// mod chain_extension;93// use crate::chain_extension::{NFTExtension, Imbalance};9495/// An index to a block.96pub type BlockNumber = u32;9798/// Alias to 512-bit hash when used in the context of a transaction signature on the chain.99pub type Signature = MultiSignature;100101/// Some way of identifying an account on the chain. We intentionally make it equivalent102/// to the public key of our transaction signing scheme.103pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;104105/// The type for looking up accounts. We don't expect more than 4 billion of them, but you106/// never know...107pub type AccountIndex = u32;108109/// Balance of an account.110pub type Balance = u128;111112/// Index of a transaction in the chain.113pub type Index = u32;114115/// A hash of some data used by the chain.116pub type Hash = sp_core::H256;117118/// Digest item type.119pub type DigestItem = generic::DigestItem<Hash>;120121/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know122/// the specifics of the runtime. They can then be made to be agnostic over specific formats123/// of data like extrinsics, allowing for them to continue syncing the network through upgrades124/// to even the core data structures.125pub mod opaque {126 use super::*;127128 pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;129130 /// Opaque block type.131 pub type Block = generic::Block<Header, UncheckedExtrinsic>;132133 pub type SessionHandlers = ();134135 impl_opaque_keys! {136 pub struct SessionKeys {137 pub aura: Aura,138 }139 }140}141142/// This runtime version.143pub const VERSION: RuntimeVersion = RuntimeVersion {144 spec_name: create_runtime_str!("opal"),145 impl_name: create_runtime_str!("opal"),146 authoring_version: 1,147 spec_version: 910000,148 impl_version: 1,149 apis: RUNTIME_API_VERSIONS,150 transaction_version: 1,151};152153pub const MILLISECS_PER_BLOCK: u64 = 12000;154155pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;156157// These time units are defined in number of blocks.158pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);159pub const HOURS: BlockNumber = MINUTES * 60;160pub const DAYS: BlockNumber = HOURS * 24;161162parameter_types! {163 pub const DefaultSponsoringRateLimit: BlockNumber = 1 * DAYS;164}165166#[derive(codec::Encode, codec::Decode)]167pub enum XCMPMessage<XAccountId, XBalance> {168 /// Transfer tokens to the given account from the Parachain account.169 TransferToken(XAccountId, XBalance),170}171172/// The version information used to identify this runtime when compiled natively.173#[cfg(feature = "std")]174pub fn native_version() -> NativeVersion {175 NativeVersion {176 runtime_version: VERSION,177 can_author_with: Default::default(),178 }179}180181type NegativeImbalance = <Balances as Currency<AccountId>>::NegativeImbalance;182183pub struct DealWithFees;184impl OnUnbalanced<NegativeImbalance> for DealWithFees {185 fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item = NegativeImbalance>) {186 if let Some(fees) = fees_then_tips.next() {187 // for fees, 100% to treasury188 let mut split = fees.ration(100, 0);189 if let Some(tips) = fees_then_tips.next() {190 // for tips, if any, 100% to treasury191 tips.ration_merge_into(100, 0, &mut split);192 }193 Treasury::on_unbalanced(split.0);194 // Author::on_unbalanced(split.1);195 }196 }197}198199/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.200/// This is used to limit the maximal weight of a single extrinsic.201const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);202/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used203/// by Operational extrinsics.204const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);205/// We allow for 2 seconds of compute with a 6 second average block time.206const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND / 2;207208parameter_types! {209 pub const BlockHashCount: BlockNumber = 2400;210 pub RuntimeBlockLength: BlockLength =211 BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);212 pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);213 pub const MaximumBlockLength: u32 = 5 * 1024 * 1024;214 pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder()215 .base_block(BlockExecutionWeight::get())216 .for_class(DispatchClass::all(), |weights| {217 weights.base_extrinsic = ExtrinsicBaseWeight::get();218 })219 .for_class(DispatchClass::Normal, |weights| {220 weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);221 })222 .for_class(DispatchClass::Operational, |weights| {223 weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT);224 // Operational transactions have some extra reserved space, so that they225 // are included even if block reached `MAXIMUM_BLOCK_WEIGHT`.226 weights.reserved = Some(227 MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT228 );229 })230 .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)231 .build_or_panic();232 pub const Version: RuntimeVersion = VERSION;233 pub const SS58Prefix: u8 = 42;234}235236parameter_types! {237 pub const ChainId: u64 = 8888;238}239240pub struct FixedFee;241impl FeeCalculator for FixedFee {242 fn min_gas_price() -> U256 {243 1.into()244 }245}246247impl pallet_evm::Config for Runtime {248 type BlockGasLimit = BlockGasLimit;249 type FeeCalculator = FixedFee;250 type GasWeightMapping = ();251 type BlockHashMapping = pallet_ethereum::EthereumBlockHashMapping<Self>;252 type CallOrigin = EnsureAddressTruncated;253 type WithdrawOrigin = EnsureAddressTruncated;254 type AddressMapping = HashedAddressMapping<Self::Hashing>;255 type Precompiles = ();256 type Currency = Balances;257 type Event = Event;258 type OnMethodCall = (259 pallet_evm_migration::OnMethodCall<Self>,260 pallet_nft::NftErcSupport<Self>,261 pallet_evm_contract_helpers::HelpersOnMethodCall<Self>,262 );263 type OnCreate = pallet_evm_contract_helpers::HelpersOnCreate<Self>;264 type ChainId = ChainId;265 type Runner = pallet_evm::runner::stack::Runner<Self>;266 type OnChargeTransaction = pallet_evm_transaction_payment::OnChargeTransaction<Self>;267 type TransactionValidityHack = pallet_evm_transaction_payment::TransactionValidityHack<Self>;268 type FindAuthor = EthereumFindAuthor<Aura>;269}270271impl pallet_evm_migration::Config for Runtime {272 type WeightInfo = pallet_evm_migration::weights::SubstrateWeight<Self>;273}274275pub struct EthereumFindAuthor<F>(core::marker::PhantomData<F>);276impl<F: FindAuthor<u32>> FindAuthor<H160> for EthereumFindAuthor<F> {277 fn find_author<'a, I>(digests: I) -> Option<H160>278 where279 I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,280 {281 if let Some(author_index) = F::find_author(digests) {282 let authority_id = Aura::authorities()[author_index as usize].clone();283 return Some(H160::from_slice(&authority_id.to_raw_vec()[4..24]));284 }285 None286 }287}288289parameter_types! {290 pub BlockGasLimit: U256 = U256::from(u32::max_value());291}292293impl pallet_ethereum::Config for Runtime {294 type Event = Event;295 type StateRoot = pallet_ethereum::IntermediateStateRoot;296 type EvmSubmitLog = pallet_evm::Pallet<Self>;297}298299impl pallet_randomness_collective_flip::Config for Runtime {}300301impl system::Config for Runtime {302 /// The data to be stored in an account.303 type AccountData = pallet_balances::AccountData<Balance>;304 /// The identifier used to distinguish between accounts.305 type AccountId = AccountId;306 /// The basic call filter to use in dispatchable.307 type BaseCallFilter = Everything;308 /// Maximum number of block number to block hash mappings to keep (oldest pruned first).309 type BlockHashCount = BlockHashCount;310 /// The maximum length of a block (in bytes).311 type BlockLength = RuntimeBlockLength;312 /// The index type for blocks.313 type BlockNumber = BlockNumber;314 /// The weight of the overhead invoked on the block import process, independent of the extrinsics included in that block.315 type BlockWeights = RuntimeBlockWeights;316 /// The aggregated dispatch type that is available for extrinsics.317 type Call = Call;318 /// The weight of database operations that the runtime can invoke.319 type DbWeight = RocksDbWeight;320 /// The ubiquitous event type.321 type Event = Event;322 /// The type for hashing blocks and tries.323 type Hash = Hash;324 /// The hashing algorithm used.325 type Hashing = BlakeTwo256;326 /// The header type.327 type Header = generic::Header<BlockNumber, BlakeTwo256>;328 /// The index type for storing how many extrinsics an account has signed.329 type Index = Index;330 /// The lookup mechanism to get account ID from whatever is passed in dispatchers.331 type Lookup = AccountIdLookup<AccountId, ()>;332 /// What to do if an account is fully reaped from the system.333 type OnKilledAccount = ();334 /// What to do if a new account is created.335 type OnNewAccount = ();336 type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;337 /// The ubiquitous origin type.338 type Origin = Origin;339 /// This type is being generated by `construct_runtime!`.340 type PalletInfo = PalletInfo;341 /// This is used as an identifier of the chain. 42 is the generic substrate prefix.342 type SS58Prefix = SS58Prefix;343 /// Weight information for the extrinsics of this pallet.344 type SystemWeightInfo = system::weights::SubstrateWeight<Self>;345 /// Version of the runtime.346 type Version = Version;347}348349parameter_types! {350 pub const MinimumPeriod: u64 = SLOT_DURATION / 2;351}352353impl pallet_timestamp::Config for Runtime {354 /// A timestamp: milliseconds since the unix epoch.355 type Moment = u64;356 type OnTimestampSet = ();357 type MinimumPeriod = MinimumPeriod;358 type WeightInfo = ();359}360361parameter_types! {362 // pub const ExistentialDeposit: u128 = 500;363 pub const ExistentialDeposit: u128 = 0;364 pub const MaxLocks: u32 = 50;365}366367impl pallet_balances::Config for Runtime {368 type MaxLocks = MaxLocks;369 type MaxReserves = ();370 type ReserveIdentifier = [u8; 8];371 /// The type for recording an account's balance.372 type Balance = Balance;373 /// The ubiquitous event type.374 type Event = Event;375 type DustRemoval = Treasury;376 type ExistentialDeposit = ExistentialDeposit;377 type AccountStore = System;378 type WeightInfo = pallet_balances::weights::SubstrateWeight<Self>;379}380381pub const MICROUNIQUE: Balance = 1_000_000_000;382pub const MILLIUNIQUE: Balance = 1_000 * MICROUNIQUE;383pub const CENTIUNIQUE: Balance = 10 * MILLIUNIQUE;384pub const UNIQUE: Balance = 100 * CENTIUNIQUE;385386pub const fn deposit(items: u32, bytes: u32) -> Balance {387 items as Balance * 15 * CENTIUNIQUE + (bytes as Balance) * 6 * CENTIUNIQUE388}389390/*391parameter_types! {392 pub TombstoneDeposit: Balance = deposit(393 1,394 sp_std::mem::size_of::<pallet_contracts::Pallet<Runtime>> as u32,395 );396 pub DepositPerContract: Balance = TombstoneDeposit::get();397 pub const DepositPerStorageByte: Balance = deposit(0, 1);398 pub const DepositPerStorageItem: Balance = deposit(1, 0);399 pub RentFraction: Perbill = Perbill::from_rational(1u32, 30 * DAYS);400 pub const SurchargeReward: Balance = 150 * MILLIUNIQUE;401 pub const SignedClaimHandicap: u32 = 2;402 pub const MaxDepth: u32 = 32;403 pub const MaxValueSize: u32 = 16 * 1024;404 pub const MaxCodeSize: u32 = 1024 * 1024 * 25; // 25 Mb405 // The lazy deletion runs inside on_initialize.406 pub DeletionWeightLimit: Weight = AVERAGE_ON_INITIALIZE_RATIO *407 RuntimeBlockWeights::get().max_block;408 // The weight needed for decoding the queue should be less or equal than a fifth409 // of the overall weight dedicated to the lazy deletion.410 pub DeletionQueueDepth: u32 = ((DeletionWeightLimit::get() / (411 <Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(1) -412 <Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(0)413 )) / 5) as u32;414 pub Schedule: pallet_contracts::Schedule<Runtime> = Default::default();415}416417impl pallet_contracts::Config for Runtime {418 type Time = Timestamp;419 type Randomness = RandomnessCollectiveFlip;420 type Currency = Balances;421 type Event = Event;422 type RentPayment = ();423 type SignedClaimHandicap = SignedClaimHandicap;424 type TombstoneDeposit = TombstoneDeposit;425 type DepositPerContract = DepositPerContract;426 type DepositPerStorageByte = DepositPerStorageByte;427 type DepositPerStorageItem = DepositPerStorageItem;428 type RentFraction = RentFraction;429 type SurchargeReward = SurchargeReward;430 type WeightPrice = pallet_transaction_payment::Pallet<Self>;431 type WeightInfo = pallet_contracts::weights::SubstrateWeight<Self>;432 type ChainExtension = NFTExtension;433 type DeletionQueueDepth = DeletionQueueDepth;434 type DeletionWeightLimit = DeletionWeightLimit;435 type Schedule = Schedule;436 type CallStack = [pallet_contracts::Frame<Self>; 31];437}438*/439440parameter_types! {441 pub const TransactionByteFee: Balance = 501 * MICROUNIQUE; // Targeting 0.1 Unique per NFT transfer442 /// This value increases the priority of `Operational` transactions by adding443 /// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.444 pub const OperationalFeeMultiplier: u8 = 5;445}446447/// Linear implementor of `WeightToFeePolynomial`448pub struct LinearFee<T>(sp_std::marker::PhantomData<T>);449450impl<T> WeightToFeePolynomial for LinearFee<T>451where452 T: BaseArithmetic + From<u32> + Copy + Unsigned,453{454 type Balance = T;455456 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {457 smallvec!(WeightToFeeCoefficient {458 coeff_integer: 146_700u32.into(), // Targeting 0.1 Unique per NFT transfer459 coeff_frac: Perbill::zero(),460 negative: false,461 degree: 1,462 })463 }464}465466impl pallet_transaction_payment::Config for Runtime {467 type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;468 type TransactionByteFee = TransactionByteFee;469 type OperationalFeeMultiplier = OperationalFeeMultiplier;470 type WeightToFee = LinearFee<Balance>;471 type FeeMultiplierUpdate = ();472}473474parameter_types! {475 pub const ProposalBond: Permill = Permill::from_percent(5);476 pub const ProposalBondMinimum: Balance = 1 * UNIQUE;477 pub const SpendPeriod: BlockNumber = 5 * MINUTES;478 pub const Burn: Permill = Permill::from_percent(0);479 pub const TipCountdown: BlockNumber = 1 * DAYS;480 pub const TipFindersFee: Percent = Percent::from_percent(20);481 pub const TipReportDepositBase: Balance = 1 * UNIQUE;482 pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;483 pub const BountyDepositBase: Balance = 1 * UNIQUE;484 pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;485 pub const TreasuryModuleId: PalletId = PalletId(*b"py/trsry");486 pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;487 pub const MaximumReasonLength: u32 = 16384;488 pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);489 pub const BountyValueMinimum: Balance = 5 * UNIQUE;490 pub const MaxApprovals: u32 = 100;491}492493impl pallet_treasury::Config for Runtime {494 type PalletId = TreasuryModuleId;495 type Currency = Balances;496 type ApproveOrigin = EnsureRoot<AccountId>;497 type RejectOrigin = EnsureRoot<AccountId>;498 type Event = Event;499 type OnSlash = ();500 type ProposalBond = ProposalBond;501 type ProposalBondMinimum = ProposalBondMinimum;502 type SpendPeriod = SpendPeriod;503 type Burn = Burn;504 type BurnDestination = ();505 type SpendFunds = ();506 type WeightInfo = pallet_treasury::weights::SubstrateWeight<Self>;507 type MaxApprovals = MaxApprovals;508}509510impl pallet_sudo::Config for Runtime {511 type Event = Event;512 type Call = Call;513}514515parameter_types! {516 pub const MinVestedTransfer: Balance = 10 * UNIQUE;517}518519impl pallet_vesting::Config for Runtime {520 type Event = Event;521 type Currency = Balances;522 type BlockNumberToBalance = ConvertInto;523 type MinVestedTransfer = MinVestedTransfer;524 type WeightInfo = ();525 const MAX_VESTING_SCHEDULES: u32 = 28;526}527528parameter_types! {529 pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4;530 pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4;531}532533impl cumulus_pallet_parachain_system::Config for Runtime {534 type Event = Event;535 type OnValidationData = ();536 type SelfParaId = parachain_info::Pallet<Self>;537 // type DownwardMessageHandlers = cumulus_primitives_utility::UnqueuedDmpAsParent<538 // MaxDownwardMessageWeight,539 // XcmExecutor<XcmConfig>,540 // Call,541 // >;542 type OutboundXcmpMessageSource = XcmpQueue;543 type DmpMessageHandler = DmpQueue;544 type ReservedDmpWeight = ReservedDmpWeight;545 type ReservedXcmpWeight = ReservedXcmpWeight;546 type XcmpMessageHandler = XcmpQueue;547}548549impl parachain_info::Config for Runtime {}550551impl cumulus_pallet_aura_ext::Config for Runtime {}552553parameter_types! {554 pub const RelayLocation: MultiLocation = MultiLocation::parent();555 pub const RelayNetwork: NetworkId = NetworkId::Polkadot;556 pub RelayOrigin: Origin = cumulus_pallet_xcm::Origin::Relay.into();557 pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();558}559560/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used561/// when determining ownership of accounts for asset transacting and when attempting to use XCM562/// `Transact` in order to determine the dispatch Origin.563pub type LocationToAccountId = (564 // The parent (Relay-chain) origin converts to the default `AccountId`.565 ParentIsDefault<AccountId>,566 // Sibling parachain origins convert to AccountId via the `ParaId::into`.567 SiblingParachainConvertsVia<Sibling, AccountId>,568 // Straight up local `AccountId32` origins just alias directly to `AccountId`.569 AccountId32Aliases<RelayNetwork, AccountId>,570);571572/// Means for transacting assets on this chain.573pub type LocalAssetTransactor = CurrencyAdapter<574 // Use this currency:575 Balances,576 // Use this currency when it is a fungible asset matching the given location or name:577 IsConcrete<RelayLocation>,578 // Do a simple punn to convert an AccountId32 MultiLocation into a native chain account ID:579 LocationToAccountId,580 // Our chain's account ID type (we can't get away without mentioning it explicitly):581 AccountId,582 // We don't track any teleports.583 (),584>;585586/// This is the type we use to convert an (incoming) XCM origin into a local `Origin` instance,587/// ready for dispatching a transaction with Xcm's `Transact`. There is an `OriginKind` which can588/// biases the kind of local `Origin` it will become.589pub type XcmOriginToTransactDispatchOrigin = (590 // Sovereign account converter; this attempts to derive an `AccountId` from the origin location591 // using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for592 // foreign chains who want to have a local sovereign account on this chain which they control.593 SovereignSignedViaLocation<LocationToAccountId, Origin>,594 // Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when595 // recognised.596 RelayChainAsNative<RelayOrigin, Origin>,597 // Native converter for sibling Parachains; will convert to a `SiblingPara` origin when598 // recognised.599 SiblingParachainAsNative<cumulus_pallet_xcm::Origin, Origin>,600 // Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a601 // transaction from the Root origin.602 ParentAsSuperuser<Origin>,603 // Native signed account converter; this just converts an `AccountId32` origin into a normal604 // `Origin::Signed` origin of the same 32-byte value.605 SignedAccountId32AsNative<RelayNetwork, Origin>,606 // Xcm origins can be represented natively under the Xcm pallet's Xcm origin.607 XcmPassthrough<Origin>,608);609610parameter_types! {611 // One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.612 pub UnitWeightCost: Weight = 1_000_000;613 // 1200 UNIQUEs buy 1 second of weight.614 pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), 1_200 * UNIQUE);615 pub const MaxInstructions: u32 = 100;616 pub const MaxAuthorities: u32 = 100_000;617}618619match_type! {620 pub type ParentOrParentsUnitPlurality: impl Contains<MultiLocation> = {621 MultiLocation { parents: 1, interior: Here } |622 MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) }623 };624}625626pub type Barrier = (627 TakeWeightCredit,628 AllowTopLevelPaidExecutionFrom<Everything>,629 AllowUnpaidExecutionFrom<ParentOrParentsUnitPlurality>,630 // ^^^ Parent & its unit plurality gets free execution631);632633pub struct XcmConfig;634impl Config for XcmConfig {635 type Call = Call;636 type XcmSender = XcmRouter;637 // How to withdraw and deposit an asset.638 type AssetTransactor = LocalAssetTransactor;639 type OriginConverter = XcmOriginToTransactDispatchOrigin;640 type IsReserve = NativeAsset;641 type IsTeleporter = (); // Teleportation is disabled642 type LocationInverter = LocationInverter<Ancestry>;643 type Barrier = Barrier;644 type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;645 type Trader = UsingComponents<IdentityFee<Balance>, RelayLocation, AccountId, Balances, ()>;646 type ResponseHandler = (); // Don't handle responses for now.647 type SubscriptionService = PolkadotXcm;648649 type AssetTrap = PolkadotXcm;650 type AssetClaims = PolkadotXcm;651}652653// parameter_types! {654// pub const MaxDownwardMessageWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 10;655// }656657/// No local origins on this chain are allowed to dispatch XCM sends/executions.658pub type LocalOriginToLocation = (SignedToAccountId32<Origin, AccountId, RelayNetwork>,);659660/// The means for routing XCM messages which are not for local execution into the right message661/// queues.662pub type XcmRouter = (663 // Two routers - use UMP to communicate with the relay chain:664 cumulus_primitives_utility::ParentAsUmp<ParachainSystem, ()>,665 // ..and XCMP to communicate with the sibling chains.666 XcmpQueue,667);668669impl pallet_evm_coder_substrate::Config for Runtime {670 type EthereumTransactionSender = pallet_ethereum::Pallet<Self>;671}672673impl pallet_xcm::Config for Runtime {674 type Event = Event;675 type SendXcmOrigin = EnsureXcmOrigin<Origin, LocalOriginToLocation>;676 type XcmRouter = XcmRouter;677 type ExecuteXcmOrigin = EnsureXcmOrigin<Origin, LocalOriginToLocation>;678 type XcmExecuteFilter = Everything;679 type XcmExecutor = XcmExecutor<XcmConfig>;680 type XcmTeleportFilter = Everything;681 type XcmReserveTransferFilter = Everything;682 type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;683 type LocationInverter = LocationInverter<Ancestry>;684 type Origin = Origin;685 type Call = Call;686 const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;687 type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;688}689690impl cumulus_pallet_xcm::Config for Runtime {691 type Event = Event;692 type XcmExecutor = XcmExecutor<XcmConfig>;693}694695impl cumulus_pallet_xcmp_queue::Config for Runtime {696 type Event = Event;697 type XcmExecutor = XcmExecutor<XcmConfig>;698 type ChannelInfo = ParachainSystem;699 type VersionWrapper = ();700}701702impl cumulus_pallet_dmp_queue::Config for Runtime {703 type Event = Event;704 type XcmExecutor = XcmExecutor<XcmConfig>;705 type ExecuteOverweightOrigin = frame_system::EnsureRoot<AccountId>;706}707708impl pallet_aura::Config for Runtime {709 type AuthorityId = AuraId;710 type DisabledValidators = ();711 type MaxAuthorities = MaxAuthorities;712}713714parameter_types! {715 pub TreasuryAccountId: AccountId = TreasuryModuleId::get().into_account();716 pub const CollectionCreationPrice: Balance = 100 * UNIQUE;717}718719/// Used for the pallet nft in `./nft.rs`720impl pallet_nft::Config for Runtime {721 type Event = Event;722 type WeightInfo = pallet_nft::weights::SubstrateWeight<Self>;723724 type EvmBackwardsAddressMapping = pallet_nft::MapBackwardsAddressTruncated;725 type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;726 type CrossAccountId = pallet_nft::BasicCrossAccountId<Self>;727728 type Currency = Balances;729 type CollectionCreationPrice = CollectionCreationPrice;730 type TreasuryAccountId = TreasuryAccountId;731}732733parameter_types! {734 pub const InflationBlockInterval: BlockNumber = 100; // every time per how many blocks inflation is applied735}736737/// Used for the pallet inflation738impl pallet_inflation::Config for Runtime {739 type Currency = Balances;740 type TreasuryAccountId = TreasuryAccountId;741 type InflationBlockInterval = InflationBlockInterval;742}743744parameter_types! {745 pub MaximumSchedulerWeight: Weight = Perbill::from_percent(50) *746 RuntimeBlockWeights::get().max_block;747 pub const MaxScheduledPerBlock: u32 = 50;748}749750pub struct Sponsoring;751impl SponsoringResolve<AccountId, Call> for Sponsoring {752 fn resolve(who: &AccountId, call: &Call) -> Option<AccountId>753 where754 Call: Dispatchable<Info = DispatchInfo>,755 AccountId: AsRef<[u8]>,756 {757 pallet_nft_transaction_payment::Module::<Runtime>::withdraw_type(who, call)758 }759}760761type SponsorshipHandler = (762 pallet_nft::NftSponsorshipHandler<Runtime>,763 //pallet_contract_helpers::ContractSponsorshipHandler<Runtime>,764);765766impl pallet_scheduler::Config for Runtime {767 type Event = Event;768 type Origin = Origin;769 type PalletsOrigin = OriginCaller;770 type Call = Call;771 type MaximumWeight = MaximumSchedulerWeight;772 type ScheduleOrigin = EnsureSigned<AccountId>;773 type MaxScheduledPerBlock = MaxScheduledPerBlock;774 type SponsorshipHandler = SponsorshipHandler;775 type WeightInfo = ();776}777778impl pallet_nft_transaction_payment::Config for Runtime {779 type SponsorshipHandler = SponsorshipHandler;780}781782impl pallet_evm_transaction_payment::Config for Runtime {783 type SponsorshipHandler = (784 pallet_nft::NftEthSponsorshipHandler<Self>,785 pallet_evm_contract_helpers::HelpersContractSponsoring<Self>,786 );787 type Currency = Balances;788}789790impl pallet_nft_charge_transaction::Config for Runtime {}791792// impl pallet_contract_helpers::Config for Runtime {793// type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;794// }795796parameter_types! {797 // 0x842899ECF380553E8a4de75bF534cdf6fBF64049798 pub const HelpersContractAddress: H160 = H160([799 0x84, 0x28, 0x99, 0xec, 0xf3, 0x80, 0x55, 0x3e, 0x8a, 0x4d, 0xe7, 0x5b, 0xf5, 0x34, 0xcd, 0xf6, 0xfb, 0xf6, 0x40, 0x49,800 ]);801}802803impl pallet_evm_contract_helpers::Config for Runtime {804 type ContractAddress = HelpersContractAddress;805 type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;806}807808construct_runtime!(809 pub enum Runtime where810 Block = Block,811 NodeBlock = opaque::Block,812 UncheckedExtrinsic = UncheckedExtrinsic813 {814 ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Storage, Inherent, Event<T>, ValidateUnsigned} = 20,815 ParachainInfo: parachain_info::{Pallet, Storage, Config} = 21,816817 Aura: pallet_aura::{Pallet, Config<T>} = 22,818 AuraExt: cumulus_pallet_aura_ext::{Pallet, Config} = 23,819820 Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 30,821 RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 31,822 Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 32,823 TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 33,824 Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 34,825 Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>} = 35,826 System: system::{Pallet, Call, Storage, Config, Event<T>} = 36,827 Vesting: pallet_vesting::{Pallet, Call, Config<T>, Storage, Event<T>} = 37,828 // Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>} = 38,829830 // XCM helpers.831 XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,832 PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 51,833 CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Event<T>, Origin} = 52,834 DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 53,835836 // Unique Pallets837 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,838 Nft: pallet_nft::{Pallet, Call, Config<T>, Storage, Event<T>} = 61,839 Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 62,840 NftPayment: pallet_nft_transaction_payment::{Pallet, Call, Storage} = 63,841 Charging: pallet_nft_charge_transaction::{Pallet, Call, Storage } = 64,842 // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,843844 // Frontier845 EVM: pallet_evm::{Pallet, Config, Call, Storage, Event<T>} = 100,846 Ethereum: pallet_ethereum::{Pallet, Config, Call, Storage, Event, ValidateUnsigned} = 101,847848 EvmCoderSubstrate: pallet_evm_coder_substrate::{Pallet, Storage} = 150,849 EvmContractHelpers: pallet_evm_contract_helpers::{Pallet, Storage} = 151,850 EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,851 EvmMigration: pallet_evm_migration::{Pallet, Call, Storage} = 153,852 }853);854855pub struct TransactionConverter;856857impl fp_rpc::ConvertTransaction<UncheckedExtrinsic> for TransactionConverter {858 fn convert_transaction(&self, transaction: pallet_ethereum::Transaction) -> UncheckedExtrinsic {859 UncheckedExtrinsic::new_unsigned(860 pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),861 )862 }863}864865impl fp_rpc::ConvertTransaction<opaque::UncheckedExtrinsic> for TransactionConverter {866 fn convert_transaction(867 &self,868 transaction: pallet_ethereum::Transaction,869 ) -> opaque::UncheckedExtrinsic {870 let extrinsic = UncheckedExtrinsic::new_unsigned(871 pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),872 );873 let encoded = extrinsic.encode();874 opaque::UncheckedExtrinsic::decode(&mut &encoded[..])875 .expect("Encoded extrinsic is always valid")876 }877}878879/// The address format for describing accounts.880pub type Address = sp_runtime::MultiAddress<AccountId, ()>;881/// Block header type as expected by this runtime.882pub type Header = generic::Header<BlockNumber, BlakeTwo256>;883/// Block type as expected by this runtime.884pub type Block = generic::Block<Header, UncheckedExtrinsic>;885/// A Block signed with a Justification886pub type SignedBlock = generic::SignedBlock<Block>;887/// BlockId type as expected by this runtime.888pub type BlockId = generic::BlockId<Block>;889/// The SignedExtension to the basic transaction logic.890pub type SignedExtra = (891 system::CheckSpecVersion<Runtime>,892 // system::CheckTxVersion<Runtime>,893 system::CheckGenesis<Runtime>,894 system::CheckEra<Runtime>,895 system::CheckNonce<Runtime>,896 system::CheckWeight<Runtime>,897 pallet_nft_charge_transaction::ChargeTransactionPayment<Runtime>,898 //pallet_contract_helpers::ContractHelpersExtension<Runtime>,899);900/// Unchecked extrinsic type as expected by this runtime.901pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signature, SignedExtra>;902/// Extrinsic type that has already been checked.903pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Call, SignedExtra>;904/// Executive: handles dispatch to the various modules.905pub type Executive = frame_executive::Executive<906 Runtime,907 Block,908 frame_system::ChainContext<Runtime>,909 Runtime,910 AllPallets,911>;912913impl_opaque_keys! {914 pub struct SessionKeys {915 pub aura: Aura,916 }917}918919impl_runtime_apis! {920 impl pallet_nft::NftApi<Block>921 for Runtime922 {923 fn eth_contract_code(account: H160) -> Option<Vec<u8>> {924 <pallet_nft::NftErcSupport<Runtime>>::get_code(&account)925 }926 }927928 impl sp_api::Core<Block> for Runtime {929 fn version() -> RuntimeVersion {930 VERSION931 }932933 fn execute_block(block: Block) {934 Executive::execute_block(block)935 }936937 fn initialize_block(header: &<Block as BlockT>::Header) {938 Executive::initialize_block(header)939 }940 }941942 impl sp_api::Metadata<Block> for Runtime {943 fn metadata() -> OpaqueMetadata {944 OpaqueMetadata::new(Runtime::metadata().into())945 }946 }947948 impl sp_block_builder::BlockBuilder<Block> for Runtime {949 fn apply_extrinsic(extrinsic: <Block as BlockT>::Extrinsic) -> ApplyExtrinsicResult {950 Executive::apply_extrinsic(extrinsic)951 }952953 fn finalize_block() -> <Block as BlockT>::Header {954 Executive::finalize_block()955 }956957 fn inherent_extrinsics(data: sp_inherents::InherentData) -> Vec<<Block as BlockT>::Extrinsic> {958 data.create_extrinsics()959 }960961 fn check_inherents(962 block: Block,963 data: sp_inherents::InherentData,964 ) -> sp_inherents::CheckInherentsResult {965 data.check_extrinsics(&block)966 }967968 // fn random_seed() -> <Block as BlockT>::Hash {969 // RandomnessCollectiveFlip::random_seed().0970 // }971 }972973 impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {974 fn validate_transaction(975 source: TransactionSource,976 tx: <Block as BlockT>::Extrinsic,977 hash: <Block as BlockT>::Hash,978 ) -> TransactionValidity {979 Executive::validate_transaction(source, tx, hash)980 }981 }982983 impl sp_offchain::OffchainWorkerApi<Block> for Runtime {984 fn offchain_worker(header: &<Block as BlockT>::Header) {985 Executive::offchain_worker(header)986 }987 }988989 impl fp_rpc::EthereumRuntimeRPCApi<Block> for Runtime {990 fn chain_id() -> u64 {991 <Runtime as pallet_evm::Config>::ChainId::get()992 }993994 fn account_basic(address: H160) -> EVMAccount {995 EVM::account_basic(&address)996 }997998 fn gas_price() -> U256 {999 <Runtime as pallet_evm::Config>::FeeCalculator::min_gas_price()1000 }10011002 fn account_code_at(address: H160) -> Vec<u8> {1003 EVM::account_codes(address)1004 }10051006 fn author() -> H160 {1007 <pallet_evm::Pallet<Runtime>>::find_author()1008 }10091010 fn storage_at(address: H160, index: U256) -> H256 {1011 let mut tmp = [0u8; 32];1012 index.to_big_endian(&mut tmp);1013 EVM::account_storages(address, H256::from_slice(&tmp[..]))1014 }10151016 fn call(1017 from: H160,1018 to: H160,1019 data: Vec<u8>,1020 value: U256,1021 gas_limit: U256,1022 gas_price: Option<U256>,1023 nonce: Option<U256>,1024 estimate: bool,1025 ) -> Result<pallet_evm::CallInfo, sp_runtime::DispatchError> {1026 let config = if estimate {1027 let mut config = <Runtime as pallet_evm::Config>::config().clone();1028 config.estimate = true;1029 Some(config)1030 } else {1031 None1032 };10331034 <Runtime as pallet_evm::Config>::Runner::call(1035 from,1036 to,1037 data,1038 value,1039 gas_limit.low_u64(),1040 gas_price,1041 nonce,1042 config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),1043 ).map_err(|err| err.into())1044 }10451046 fn create(1047 from: H160,1048 data: Vec<u8>,1049 value: U256,1050 gas_limit: U256,1051 gas_price: Option<U256>,1052 nonce: Option<U256>,1053 estimate: bool,1054 ) -> Result<pallet_evm::CreateInfo, sp_runtime::DispatchError> {1055 let config = if estimate {1056 let mut config = <Runtime as pallet_evm::Config>::config().clone();1057 config.estimate = true;1058 Some(config)1059 } else {1060 None1061 };10621063 <Runtime as pallet_evm::Config>::Runner::create(1064 from,1065 data,1066 value,1067 gas_limit.low_u64(),1068 gas_price,1069 nonce,1070 config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),1071 ).map_err(|err| err.into())1072 }10731074 fn current_transaction_statuses() -> Option<Vec<TransactionStatus>> {1075 Ethereum::current_transaction_statuses()1076 }10771078 fn current_block() -> Option<pallet_ethereum::Block> {1079 Ethereum::current_block()1080 }10811082 fn current_receipts() -> Option<Vec<pallet_ethereum::Receipt>> {1083 Ethereum::current_receipts()1084 }10851086 fn current_all() -> (1087 Option<pallet_ethereum::Block>,1088 Option<Vec<pallet_ethereum::Receipt>>,1089 Option<Vec<TransactionStatus>>1090 ) {1091 (1092 Ethereum::current_block(),1093 Ethereum::current_receipts(),1094 Ethereum::current_transaction_statuses()1095 )1096 }10971098 fn extrinsic_filter(xts: Vec<<Block as sp_api::BlockT>::Extrinsic>) -> Vec<pallet_ethereum::Transaction> {1099 xts.into_iter().filter_map(|xt| match xt.function {1100 Call::Ethereum(pallet_ethereum::Call::transact { transaction }) => Some(transaction),1101 _ => None1102 }).collect()1103 }1104 }11051106 impl sp_session::SessionKeys<Block> for Runtime {1107 fn decode_session_keys(1108 encoded: Vec<u8>,1109 ) -> Option<Vec<(Vec<u8>, KeyTypeId)>> {1110 SessionKeys::decode_into_raw_public_keys(&encoded)1111 }11121113 fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8> {1114 SessionKeys::generate(seed)1115 }1116 }11171118 impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {1119 fn slot_duration() -> sp_consensus_aura::SlotDuration {1120 sp_consensus_aura::SlotDuration::from_millis(Aura::slot_duration())1121 }11221123 fn authorities() -> Vec<AuraId> {1124 Aura::authorities().to_vec()1125 }1126 }11271128 impl cumulus_primitives_core::CollectCollationInfo<Block> for Runtime {1129 fn collect_collation_info() -> cumulus_primitives_core::CollationInfo {1130 ParachainSystem::collect_collation_info()1131 }1132 }11331134 impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {1135 fn account_nonce(account: AccountId) -> Index {1136 System::account_nonce(account)1137 }1138 }11391140 impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance> for Runtime {1141 fn query_info(uxt: <Block as BlockT>::Extrinsic, len: u32) -> RuntimeDispatchInfo<Balance> {1142 TransactionPayment::query_info(uxt, len)1143 }1144 fn query_fee_details(uxt: <Block as BlockT>::Extrinsic, len: u32) -> FeeDetails<Balance> {1145 TransactionPayment::query_fee_details(uxt, len)1146 }1147 }11481149 /*1150 impl pallet_contracts_rpc_runtime_api::ContractsApi<Block, AccountId, Balance, BlockNumber, Hash>1151 for Runtime1152 {1153 fn call(1154 origin: AccountId,1155 dest: AccountId,1156 value: Balance,1157 gas_limit: u64,1158 input_data: Vec<u8>,1159 ) -> pallet_contracts_primitives::ContractExecResult {1160 Contracts::bare_call(origin, dest, value, gas_limit, input_data, false)1161 }11621163 fn instantiate(1164 origin: AccountId,1165 endowment: Balance,1166 gas_limit: u64,1167 code: pallet_contracts_primitives::Code<Hash>,1168 data: Vec<u8>,1169 salt: Vec<u8>,1170 ) -> pallet_contracts_primitives::ContractInstantiateResult<AccountId, BlockNumber>1171 {1172 Contracts::bare_instantiate(origin, endowment, gas_limit, code, data, salt, true, false)1173 }11741175 fn get_storage(1176 address: AccountId,1177 key: [u8; 32],1178 ) -> pallet_contracts_primitives::GetStorageResult {1179 Contracts::get_storage(address, key)1180 }11811182 fn rent_projection(1183 address: AccountId,1184 ) -> pallet_contracts_primitives::RentProjectionResult<BlockNumber> {1185 Contracts::rent_projection(address)1186 }1187 }1188 */11891190 #[cfg(feature = "runtime-benchmarks")]1191 impl frame_benchmarking::Benchmark<Block> for Runtime {1192 fn dispatch_benchmark(1193 config: frame_benchmarking::BenchmarkConfig1194 ) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {1195 use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark, TrackedStorageKey};11961197 let whitelist: Vec<TrackedStorageKey> = vec![1198 // Alice account1199 hex_literal::hex!("d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d").to_vec().into(),1200 // // Total Issuance1201 // hex_literal::hex!("c2261276cc9d1f8598ea4b6a74b15c2f57c875e4cff74148e4628f264b974c80").to_vec().into(),1202 // // Execution Phase1203 // hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef7ff553b5a9862a516939d82b3d3d8661a").to_vec().into(),1204 // // Event Count1205 // hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef70a98fdbe9ce6c55837576c60c7af3850").to_vec().into(),1206 // // System Events1207 // hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7").to_vec().into(),1208 ];12091210 let mut batches = Vec::<BenchmarkBatch>::new();1211 let params = (&config, &whitelist);12121213 add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);1214 add_benchmark!(params, batches, pallet_nft, Nft);1215 add_benchmark!(params, batches, pallet_inflation, Inflation);12161217 if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }1218 Ok(batches)1219 }1220 }1221}12221223struct CheckInherents;12241225impl cumulus_pallet_parachain_system::CheckInherents<Block> for CheckInherents {1226 fn check_inherents(1227 block: &Block,1228 relay_state_proof: &cumulus_pallet_parachain_system::RelayChainStateProof,1229 ) -> sp_inherents::CheckInherentsResult {1230 let relay_chain_slot = relay_state_proof1231 .read_slot()1232 .expect("Could not read the relay chain slot from the proof");12331234 let inherent_data =1235 cumulus_primitives_timestamp::InherentDataProvider::from_relay_chain_slot_and_duration(1236 relay_chain_slot,1237 sp_std::time::Duration::from_secs(6),1238 )1239 .create_inherent_data()1240 .expect("Could not create the timestamp inherent data");12411242 inherent_data.check_extrinsics(block)1243 }1244}12451246cumulus_pallet_parachain_system::register_validate_block!(1247 Runtime = Runtime,1248 BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,1249 CheckInherents = CheckInherents,1250);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};19// #[cfg(any(feature = "std", test))]20// pub use sp_runtime::BuildStorage;2122use sp_runtime::{23 Permill, Perbill, Percent, create_runtime_str, generic, impl_opaque_keys,24 traits::{25 AccountIdLookup, ConvertInto, BlakeTwo256, Block as BlockT, IdentifyAccount, Verify,26 AccountIdConversion,27 },28 transaction_validity::{TransactionSource, TransactionValidity},29 ApplyExtrinsicResult, MultiSignature,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 nft_data_structs::*;58// use pallet_contracts::weights::WeightInfo;59// #[cfg(any(feature = "std", test))]60use frame_system::{61 self as 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, OnMethodCall};70use fp_rpc::TransactionStatus;71use sp_core::crypto::Public;72use sp_runtime::{73 traits::{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;105106/// The type for looking up accounts. We don't expect more than 4 billion of them, but you107/// never know...108pub type AccountIndex = u32;109110/// Balance of an account.111pub type Balance = u128;112113/// Index of a transaction in the chain.114pub type Index = u32;115116/// A hash of some data used by the chain.117pub type Hash = sp_core::H256;118119/// Digest item type.120pub type DigestItem = generic::DigestItem<Hash>;121122/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know123/// the specifics of the runtime. They can then be made to be agnostic over specific formats124/// of data like extrinsics, allowing for them to continue syncing the network through upgrades125/// to even the core data structures.126pub mod opaque {127 use super::*;128129 pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;130131 /// Opaque block type.132 pub type Block = generic::Block<Header, UncheckedExtrinsic>;133134 pub type SessionHandlers = ();135136 impl_opaque_keys! {137 pub struct SessionKeys {138 pub aura: Aura,139 }140 }141}142143/// This runtime version.144pub const VERSION: RuntimeVersion = RuntimeVersion {145 spec_name: create_runtime_str!("opal"),146 impl_name: create_runtime_str!("opal"),147 authoring_version: 1,148 spec_version: 910000,149 impl_version: 1,150 apis: RUNTIME_API_VERSIONS,151 transaction_version: 1,152};153154pub const MILLISECS_PER_BLOCK: u64 = 12000;155156pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;157158// These time units are defined in number of blocks.159pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);160pub const HOURS: BlockNumber = MINUTES * 60;161pub const DAYS: BlockNumber = HOURS * 24;162163parameter_types! {164 pub const DefaultSponsoringRateLimit: BlockNumber = 1 * DAYS;165}166167#[derive(codec::Encode, codec::Decode)]168pub enum XCMPMessage<XAccountId, XBalance> {169 /// Transfer tokens to the given account from the Parachain account.170 TransferToken(XAccountId, XBalance),171}172173/// The version information used to identify this runtime when compiled natively.174#[cfg(feature = "std")]175pub fn native_version() -> NativeVersion {176 NativeVersion {177 runtime_version: VERSION,178 can_author_with: Default::default(),179 }180}181182type NegativeImbalance = <Balances as Currency<AccountId>>::NegativeImbalance;183184pub struct DealWithFees;185impl OnUnbalanced<NegativeImbalance> for DealWithFees {186 fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item = NegativeImbalance>) {187 if let Some(fees) = fees_then_tips.next() {188 // for fees, 100% to treasury189 let mut split = fees.ration(100, 0);190 if let Some(tips) = fees_then_tips.next() {191 // for tips, if any, 100% to treasury192 tips.ration_merge_into(100, 0, &mut split);193 }194 Treasury::on_unbalanced(split.0);195 // Author::on_unbalanced(split.1);196 }197 }198}199200/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.201/// This is used to limit the maximal weight of a single extrinsic.202const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);203/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used204/// by Operational extrinsics.205const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);206/// We allow for 2 seconds of compute with a 6 second average block time.207const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND / 2;208209parameter_types! {210 pub const BlockHashCount: BlockNumber = 2400;211 pub RuntimeBlockLength: BlockLength =212 BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);213 pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);214 pub const MaximumBlockLength: u32 = 5 * 1024 * 1024;215 pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder()216 .base_block(BlockExecutionWeight::get())217 .for_class(DispatchClass::all(), |weights| {218 weights.base_extrinsic = ExtrinsicBaseWeight::get();219 })220 .for_class(DispatchClass::Normal, |weights| {221 weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);222 })223 .for_class(DispatchClass::Operational, |weights| {224 weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT);225 // Operational transactions have some extra reserved space, so that they226 // are included even if block reached `MAXIMUM_BLOCK_WEIGHT`.227 weights.reserved = Some(228 MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT229 );230 })231 .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)232 .build_or_panic();233 pub const Version: RuntimeVersion = VERSION;234 pub const SS58Prefix: u8 = 42;235}236237parameter_types! {238 pub const ChainId: u64 = 8888;239}240241pub struct FixedFee;242impl FeeCalculator for FixedFee {243 fn min_gas_price() -> U256 {244 1.into()245 }246}247248impl pallet_evm::Config for Runtime {249 type BlockGasLimit = BlockGasLimit;250 type FeeCalculator = FixedFee;251 type GasWeightMapping = ();252 type BlockHashMapping = pallet_ethereum::EthereumBlockHashMapping<Self>;253 type CallOrigin = EnsureAddressTruncated;254 type WithdrawOrigin = EnsureAddressTruncated;255 type AddressMapping = HashedAddressMapping<Self::Hashing>;256 type Precompiles = ();257 type Currency = Balances;258 type Event = Event;259 type OnMethodCall = (260 pallet_evm_migration::OnMethodCall<Self>,261 pallet_nft::NftErcSupport<Self>,262 pallet_evm_contract_helpers::HelpersOnMethodCall<Self>,263 );264 type OnCreate = pallet_evm_contract_helpers::HelpersOnCreate<Self>;265 type ChainId = ChainId;266 type Runner = pallet_evm::runner::stack::Runner<Self>;267 type OnChargeTransaction = pallet_evm_transaction_payment::OnChargeTransaction<Self>;268 type TransactionValidityHack = pallet_evm_transaction_payment::TransactionValidityHack<Self>;269 type FindAuthor = EthereumFindAuthor<Aura>;270}271272impl pallet_evm_migration::Config for Runtime {273 type WeightInfo = pallet_evm_migration::weights::SubstrateWeight<Self>;274}275276pub struct EthereumFindAuthor<F>(core::marker::PhantomData<F>);277impl<F: FindAuthor<u32>> FindAuthor<H160> for EthereumFindAuthor<F> {278 fn find_author<'a, I>(digests: I) -> Option<H160>279 where280 I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,281 {282 if let Some(author_index) = F::find_author(digests) {283 let authority_id = Aura::authorities()[author_index as usize].clone();284 return Some(H160::from_slice(&authority_id.to_raw_vec()[4..24]));285 }286 None287 }288}289290parameter_types! {291 pub BlockGasLimit: U256 = U256::from(u32::max_value());292}293294impl pallet_ethereum::Config for Runtime {295 type Event = Event;296 type StateRoot = pallet_ethereum::IntermediateStateRoot;297 type EvmSubmitLog = pallet_evm::Pallet<Self>;298}299300impl pallet_randomness_collective_flip::Config for Runtime {}301302impl system::Config for Runtime {303 /// The data to be stored in an account.304 type AccountData = pallet_balances::AccountData<Balance>;305 /// The identifier used to distinguish between accounts.306 type AccountId = AccountId;307 /// The basic call filter to use in dispatchable.308 type BaseCallFilter = Everything;309 /// Maximum number of block number to block hash mappings to keep (oldest pruned first).310 type BlockHashCount = BlockHashCount;311 /// The maximum length of a block (in bytes).312 type BlockLength = RuntimeBlockLength;313 /// The index type for blocks.314 type BlockNumber = BlockNumber;315 /// The weight of the overhead invoked on the block import process, independent of the extrinsics included in that block.316 type BlockWeights = RuntimeBlockWeights;317 /// The aggregated dispatch type that is available for extrinsics.318 type Call = Call;319 /// The weight of database operations that the runtime can invoke.320 type DbWeight = RocksDbWeight;321 /// The ubiquitous event type.322 type Event = Event;323 /// The type for hashing blocks and tries.324 type Hash = Hash;325 /// The hashing algorithm used.326 type Hashing = BlakeTwo256;327 /// The header type.328 type Header = generic::Header<BlockNumber, BlakeTwo256>;329 /// The index type for storing how many extrinsics an account has signed.330 type Index = Index;331 /// The lookup mechanism to get account ID from whatever is passed in dispatchers.332 type Lookup = AccountIdLookup<AccountId, ()>;333 /// What to do if an account is fully reaped from the system.334 type OnKilledAccount = ();335 /// What to do if a new account is created.336 type OnNewAccount = ();337 type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;338 /// The ubiquitous origin type.339 type Origin = Origin;340 /// This type is being generated by `construct_runtime!`.341 type PalletInfo = PalletInfo;342 /// This is used as an identifier of the chain. 42 is the generic substrate prefix.343 type SS58Prefix = SS58Prefix;344 /// Weight information for the extrinsics of this pallet.345 type SystemWeightInfo = system::weights::SubstrateWeight<Self>;346 /// Version of the runtime.347 type Version = Version;348}349350parameter_types! {351 pub const MinimumPeriod: u64 = SLOT_DURATION / 2;352}353354impl pallet_timestamp::Config for Runtime {355 /// A timestamp: milliseconds since the unix epoch.356 type Moment = u64;357 type OnTimestampSet = ();358 type MinimumPeriod = MinimumPeriod;359 type WeightInfo = ();360}361362parameter_types! {363 // pub const ExistentialDeposit: u128 = 500;364 pub const ExistentialDeposit: u128 = 0;365 pub const MaxLocks: u32 = 50;366}367368impl pallet_balances::Config for Runtime {369 type MaxLocks = MaxLocks;370 type MaxReserves = ();371 type ReserveIdentifier = [u8; 8];372 /// The type for recording an account's balance.373 type Balance = Balance;374 /// The ubiquitous event type.375 type Event = Event;376 type DustRemoval = Treasury;377 type ExistentialDeposit = ExistentialDeposit;378 type AccountStore = System;379 type WeightInfo = pallet_balances::weights::SubstrateWeight<Self>;380}381382pub const MICROUNIQUE: Balance = 1_000_000_000;383pub const MILLIUNIQUE: Balance = 1_000 * MICROUNIQUE;384pub const CENTIUNIQUE: Balance = 10 * MILLIUNIQUE;385pub const UNIQUE: Balance = 100 * CENTIUNIQUE;386387pub const fn deposit(items: u32, bytes: u32) -> Balance {388 items as Balance * 15 * CENTIUNIQUE + (bytes as Balance) * 6 * CENTIUNIQUE389}390391/*392parameter_types! {393 pub TombstoneDeposit: Balance = deposit(394 1,395 sp_std::mem::size_of::<pallet_contracts::Pallet<Runtime>> as u32,396 );397 pub DepositPerContract: Balance = TombstoneDeposit::get();398 pub const DepositPerStorageByte: Balance = deposit(0, 1);399 pub const DepositPerStorageItem: Balance = deposit(1, 0);400 pub RentFraction: Perbill = Perbill::from_rational(1u32, 30 * DAYS);401 pub const SurchargeReward: Balance = 150 * MILLIUNIQUE;402 pub const SignedClaimHandicap: u32 = 2;403 pub const MaxDepth: u32 = 32;404 pub const MaxValueSize: u32 = 16 * 1024;405 pub const MaxCodeSize: u32 = 1024 * 1024 * 25; // 25 Mb406 // The lazy deletion runs inside on_initialize.407 pub DeletionWeightLimit: Weight = AVERAGE_ON_INITIALIZE_RATIO *408 RuntimeBlockWeights::get().max_block;409 // The weight needed for decoding the queue should be less or equal than a fifth410 // of the overall weight dedicated to the lazy deletion.411 pub DeletionQueueDepth: u32 = ((DeletionWeightLimit::get() / (412 <Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(1) -413 <Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(0)414 )) / 5) as u32;415 pub Schedule: pallet_contracts::Schedule<Runtime> = Default::default();416}417418impl pallet_contracts::Config for Runtime {419 type Time = Timestamp;420 type Randomness = RandomnessCollectiveFlip;421 type Currency = Balances;422 type Event = Event;423 type RentPayment = ();424 type SignedClaimHandicap = SignedClaimHandicap;425 type TombstoneDeposit = TombstoneDeposit;426 type DepositPerContract = DepositPerContract;427 type DepositPerStorageByte = DepositPerStorageByte;428 type DepositPerStorageItem = DepositPerStorageItem;429 type RentFraction = RentFraction;430 type SurchargeReward = SurchargeReward;431 type WeightPrice = pallet_transaction_payment::Pallet<Self>;432 type WeightInfo = pallet_contracts::weights::SubstrateWeight<Self>;433 type ChainExtension = NFTExtension;434 type DeletionQueueDepth = DeletionQueueDepth;435 type DeletionWeightLimit = DeletionWeightLimit;436 type Schedule = Schedule;437 type CallStack = [pallet_contracts::Frame<Self>; 31];438}439*/440441parameter_types! {442 pub const TransactionByteFee: Balance = 501 * MICROUNIQUE; // Targeting 0.1 Unique per NFT transfer443 /// This value increases the priority of `Operational` transactions by adding444 /// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.445 pub const OperationalFeeMultiplier: u8 = 5;446}447448/// Linear implementor of `WeightToFeePolynomial`449pub struct LinearFee<T>(sp_std::marker::PhantomData<T>);450451impl<T> WeightToFeePolynomial for LinearFee<T>452where453 T: BaseArithmetic + From<u32> + Copy + Unsigned,454{455 type Balance = T;456457 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {458 smallvec!(WeightToFeeCoefficient {459 coeff_integer: 146_700u32.into(), // Targeting 0.1 Unique per NFT transfer460 coeff_frac: Perbill::zero(),461 negative: false,462 degree: 1,463 })464 }465}466467impl pallet_transaction_payment::Config for Runtime {468 type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;469 type TransactionByteFee = TransactionByteFee;470 type OperationalFeeMultiplier = OperationalFeeMultiplier;471 type WeightToFee = LinearFee<Balance>;472 type FeeMultiplierUpdate = ();473}474475parameter_types! {476 pub const ProposalBond: Permill = Permill::from_percent(5);477 pub const ProposalBondMinimum: Balance = 1 * UNIQUE;478 pub const SpendPeriod: BlockNumber = 5 * MINUTES;479 pub const Burn: Permill = Permill::from_percent(0);480 pub const TipCountdown: BlockNumber = 1 * DAYS;481 pub const TipFindersFee: Percent = Percent::from_percent(20);482 pub const TipReportDepositBase: Balance = 1 * UNIQUE;483 pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;484 pub const BountyDepositBase: Balance = 1 * UNIQUE;485 pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;486 pub const TreasuryModuleId: PalletId = PalletId(*b"py/trsry");487 pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;488 pub const MaximumReasonLength: u32 = 16384;489 pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);490 pub const BountyValueMinimum: Balance = 5 * UNIQUE;491 pub const MaxApprovals: u32 = 100;492}493494impl pallet_treasury::Config for Runtime {495 type PalletId = TreasuryModuleId;496 type Currency = Balances;497 type ApproveOrigin = EnsureRoot<AccountId>;498 type RejectOrigin = EnsureRoot<AccountId>;499 type Event = Event;500 type OnSlash = ();501 type ProposalBond = ProposalBond;502 type ProposalBondMinimum = ProposalBondMinimum;503 type SpendPeriod = SpendPeriod;504 type Burn = Burn;505 type BurnDestination = ();506 type SpendFunds = ();507 type WeightInfo = pallet_treasury::weights::SubstrateWeight<Self>;508 type MaxApprovals = MaxApprovals;509}510511impl pallet_sudo::Config for Runtime {512 type Event = Event;513 type Call = Call;514}515516parameter_types! {517 pub const MinVestedTransfer: Balance = 10 * UNIQUE;518}519520impl pallet_vesting::Config for Runtime {521 type Event = Event;522 type Currency = Balances;523 type BlockNumberToBalance = ConvertInto;524 type MinVestedTransfer = MinVestedTransfer;525 type WeightInfo = ();526 const MAX_VESTING_SCHEDULES: u32 = 28;527}528529parameter_types! {530 pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4;531 pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4;532}533534impl cumulus_pallet_parachain_system::Config for Runtime {535 type Event = Event;536 type OnValidationData = ();537 type SelfParaId = parachain_info::Pallet<Self>;538 // type DownwardMessageHandlers = cumulus_primitives_utility::UnqueuedDmpAsParent<539 // MaxDownwardMessageWeight,540 // XcmExecutor<XcmConfig>,541 // Call,542 // >;543 type OutboundXcmpMessageSource = XcmpQueue;544 type DmpMessageHandler = DmpQueue;545 type ReservedDmpWeight = ReservedDmpWeight;546 type ReservedXcmpWeight = ReservedXcmpWeight;547 type XcmpMessageHandler = XcmpQueue;548}549550impl parachain_info::Config for Runtime {}551552impl cumulus_pallet_aura_ext::Config for Runtime {}553554parameter_types! {555 pub const RelayLocation: MultiLocation = MultiLocation::parent();556 pub const RelayNetwork: NetworkId = NetworkId::Polkadot;557 pub RelayOrigin: Origin = cumulus_pallet_xcm::Origin::Relay.into();558 pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();559}560561/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used562/// when determining ownership of accounts for asset transacting and when attempting to use XCM563/// `Transact` in order to determine the dispatch Origin.564pub type LocationToAccountId = (565 // The parent (Relay-chain) origin converts to the default `AccountId`.566 ParentIsDefault<AccountId>,567 // Sibling parachain origins convert to AccountId via the `ParaId::into`.568 SiblingParachainConvertsVia<Sibling, AccountId>,569 // Straight up local `AccountId32` origins just alias directly to `AccountId`.570 AccountId32Aliases<RelayNetwork, AccountId>,571);572573/// Means for transacting assets on this chain.574pub type LocalAssetTransactor = CurrencyAdapter<575 // Use this currency:576 Balances,577 // Use this currency when it is a fungible asset matching the given location or name:578 IsConcrete<RelayLocation>,579 // Do a simple punn to convert an AccountId32 MultiLocation into a native chain account ID:580 LocationToAccountId,581 // Our chain's account ID type (we can't get away without mentioning it explicitly):582 AccountId,583 // We don't track any teleports.584 (),585>;586587/// This is the type we use to convert an (incoming) XCM origin into a local `Origin` instance,588/// ready for dispatching a transaction with Xcm's `Transact`. There is an `OriginKind` which can589/// biases the kind of local `Origin` it will become.590pub type XcmOriginToTransactDispatchOrigin = (591 // Sovereign account converter; this attempts to derive an `AccountId` from the origin location592 // using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for593 // foreign chains who want to have a local sovereign account on this chain which they control.594 SovereignSignedViaLocation<LocationToAccountId, Origin>,595 // Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when596 // recognised.597 RelayChainAsNative<RelayOrigin, Origin>,598 // Native converter for sibling Parachains; will convert to a `SiblingPara` origin when599 // recognised.600 SiblingParachainAsNative<cumulus_pallet_xcm::Origin, Origin>,601 // Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a602 // transaction from the Root origin.603 ParentAsSuperuser<Origin>,604 // Native signed account converter; this just converts an `AccountId32` origin into a normal605 // `Origin::Signed` origin of the same 32-byte value.606 SignedAccountId32AsNative<RelayNetwork, Origin>,607 // Xcm origins can be represented natively under the Xcm pallet's Xcm origin.608 XcmPassthrough<Origin>,609);610611parameter_types! {612 // One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.613 pub UnitWeightCost: Weight = 1_000_000;614 // 1200 UNIQUEs buy 1 second of weight.615 pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), 1_200 * UNIQUE);616 pub const MaxInstructions: u32 = 100;617 pub const MaxAuthorities: u32 = 100_000;618}619620match_type! {621 pub type ParentOrParentsUnitPlurality: impl Contains<MultiLocation> = {622 MultiLocation { parents: 1, interior: Here } |623 MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) }624 };625}626627pub type Barrier = (628 TakeWeightCredit,629 AllowTopLevelPaidExecutionFrom<Everything>,630 AllowUnpaidExecutionFrom<ParentOrParentsUnitPlurality>,631 // ^^^ Parent & its unit plurality gets free execution632);633634pub struct XcmConfig;635impl Config for XcmConfig {636 type Call = Call;637 type XcmSender = XcmRouter;638 // How to withdraw and deposit an asset.639 type AssetTransactor = LocalAssetTransactor;640 type OriginConverter = XcmOriginToTransactDispatchOrigin;641 type IsReserve = NativeAsset;642 type IsTeleporter = (); // Teleportation is disabled643 type LocationInverter = LocationInverter<Ancestry>;644 type Barrier = Barrier;645 type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;646 type Trader = UsingComponents<IdentityFee<Balance>, RelayLocation, AccountId, Balances, ()>;647 type ResponseHandler = (); // Don't handle responses for now.648 type SubscriptionService = PolkadotXcm;649650 type AssetTrap = PolkadotXcm;651 type AssetClaims = PolkadotXcm;652}653654// parameter_types! {655// pub const MaxDownwardMessageWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 10;656// }657658/// No local origins on this chain are allowed to dispatch XCM sends/executions.659pub type LocalOriginToLocation = (SignedToAccountId32<Origin, AccountId, RelayNetwork>,);660661/// The means for routing XCM messages which are not for local execution into the right message662/// queues.663pub type XcmRouter = (664 // Two routers - use UMP to communicate with the relay chain:665 cumulus_primitives_utility::ParentAsUmp<ParachainSystem, ()>,666 // ..and XCMP to communicate with the sibling chains.667 XcmpQueue,668);669670impl pallet_evm_coder_substrate::Config for Runtime {671 type EthereumTransactionSender = pallet_ethereum::Pallet<Self>;672}673674impl pallet_xcm::Config for Runtime {675 type Event = Event;676 type SendXcmOrigin = EnsureXcmOrigin<Origin, LocalOriginToLocation>;677 type XcmRouter = XcmRouter;678 type ExecuteXcmOrigin = EnsureXcmOrigin<Origin, LocalOriginToLocation>;679 type XcmExecuteFilter = Everything;680 type XcmExecutor = XcmExecutor<XcmConfig>;681 type XcmTeleportFilter = Everything;682 type XcmReserveTransferFilter = Everything;683 type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;684 type LocationInverter = LocationInverter<Ancestry>;685 type Origin = Origin;686 type Call = Call;687 const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;688 type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;689}690691impl cumulus_pallet_xcm::Config for Runtime {692 type Event = Event;693 type XcmExecutor = XcmExecutor<XcmConfig>;694}695696impl cumulus_pallet_xcmp_queue::Config for Runtime {697 type Event = Event;698 type XcmExecutor = XcmExecutor<XcmConfig>;699 type ChannelInfo = ParachainSystem;700 type VersionWrapper = ();701}702703impl cumulus_pallet_dmp_queue::Config for Runtime {704 type Event = Event;705 type XcmExecutor = XcmExecutor<XcmConfig>;706 type ExecuteOverweightOrigin = frame_system::EnsureRoot<AccountId>;707}708709impl pallet_aura::Config for Runtime {710 type AuthorityId = AuraId;711 type DisabledValidators = ();712 type MaxAuthorities = MaxAuthorities;713}714715parameter_types! {716 pub TreasuryAccountId: AccountId = TreasuryModuleId::get().into_account();717 pub const CollectionCreationPrice: Balance = 100 * UNIQUE;718}719720/// Used for the pallet nft in `./nft.rs`721impl pallet_nft::Config for Runtime {722 type Event = Event;723 type WeightInfo = pallet_nft::weights::SubstrateWeight<Self>;724725 type EvmBackwardsAddressMapping = pallet_nft::MapBackwardsAddressTruncated;726 type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;727 type CrossAccountId = pallet_nft::BasicCrossAccountId<Self>;728729 type Currency = Balances;730 type CollectionCreationPrice = CollectionCreationPrice;731 type TreasuryAccountId = TreasuryAccountId;732}733734parameter_types! {735 pub const InflationBlockInterval: BlockNumber = 100; // every time per how many blocks inflation is applied736}737738/// Used for the pallet inflation739impl pallet_inflation::Config for Runtime {740 type Currency = Balances;741 type TreasuryAccountId = TreasuryAccountId;742 type InflationBlockInterval = InflationBlockInterval;743}744745parameter_types! {746 pub MaximumSchedulerWeight: Weight = Perbill::from_percent(50) *747 RuntimeBlockWeights::get().max_block;748 pub const MaxScheduledPerBlock: u32 = 50;749}750751pub struct Sponsoring;752impl SponsoringResolve<AccountId, Call> for Sponsoring {753 fn resolve(who: &AccountId, call: &Call) -> Option<AccountId>754 where755 Call: Dispatchable<Info = DispatchInfo>,756 AccountId: AsRef<[u8]>,757 {758 pallet_nft_transaction_payment::Module::<Runtime>::withdraw_type(who, call)759 }760}761762type SponsorshipHandler = (763 pallet_nft::NftSponsorshipHandler<Runtime>,764 //pallet_contract_helpers::ContractSponsorshipHandler<Runtime>,765);766767impl pallet_scheduler::Config for Runtime {768 type Event = Event;769 type Origin = Origin;770 type PalletsOrigin = OriginCaller;771 type Call = Call;772 type MaximumWeight = MaximumSchedulerWeight;773 type ScheduleOrigin = EnsureSigned<AccountId>;774 type MaxScheduledPerBlock = MaxScheduledPerBlock;775 type SponsorshipHandler = SponsorshipHandler;776 type WeightInfo = ();777}778779impl pallet_nft_transaction_payment::Config for Runtime {780 type SponsorshipHandler = SponsorshipHandler;781}782783impl pallet_evm_transaction_payment::Config for Runtime {784 type SponsorshipHandler = (785 pallet_nft::NftEthSponsorshipHandler<Self>,786 pallet_evm_contract_helpers::HelpersContractSponsoring<Self>,787 );788 type Currency = Balances;789}790791impl pallet_nft_charge_transaction::Config for Runtime {}792793// impl pallet_contract_helpers::Config for Runtime {794// type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;795// }796797parameter_types! {798 // 0x842899ECF380553E8a4de75bF534cdf6fBF64049799 pub const HelpersContractAddress: H160 = H160([800 0x84, 0x28, 0x99, 0xec, 0xf3, 0x80, 0x55, 0x3e, 0x8a, 0x4d, 0xe7, 0x5b, 0xf5, 0x34, 0xcd, 0xf6, 0xfb, 0xf6, 0x40, 0x49,801 ]);802}803804impl pallet_evm_contract_helpers::Config for Runtime {805 type ContractAddress = HelpersContractAddress;806 type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;807}808809construct_runtime!(810 pub enum Runtime where811 Block = Block,812 NodeBlock = opaque::Block,813 UncheckedExtrinsic = UncheckedExtrinsic814 {815 ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Storage, Inherent, Event<T>, ValidateUnsigned} = 20,816 ParachainInfo: parachain_info::{Pallet, Storage, Config} = 21,817818 Aura: pallet_aura::{Pallet, Config<T>} = 22,819 AuraExt: cumulus_pallet_aura_ext::{Pallet, Config} = 23,820821 Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 30,822 RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 31,823 Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 32,824 TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 33,825 Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 34,826 Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>} = 35,827 System: system::{Pallet, Call, Storage, Config, Event<T>} = 36,828 Vesting: pallet_vesting::{Pallet, Call, Config<T>, Storage, Event<T>} = 37,829 // Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>} = 38,830831 // XCM helpers.832 XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,833 PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 51,834 CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Event<T>, Origin} = 52,835 DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 53,836837 // Unique Pallets838 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,839 Nft: pallet_nft::{Pallet, Call, Config<T>, Storage, Event<T>} = 61,840 Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 62,841 NftPayment: pallet_nft_transaction_payment::{Pallet, Call, Storage} = 63,842 Charging: pallet_nft_charge_transaction::{Pallet, Call, Storage } = 64,843 // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,844845 // Frontier846 EVM: pallet_evm::{Pallet, Config, Call, Storage, Event<T>} = 100,847 Ethereum: pallet_ethereum::{Pallet, Config, Call, Storage, Event, Origin} = 101,848849 EvmCoderSubstrate: pallet_evm_coder_substrate::{Pallet, Storage} = 150,850 EvmContractHelpers: pallet_evm_contract_helpers::{Pallet, Storage} = 151,851 EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,852 EvmMigration: pallet_evm_migration::{Pallet, Call, Storage} = 153,853 }854);855856pub struct TransactionConverter;857858impl fp_rpc::ConvertTransaction<UncheckedExtrinsic> for TransactionConverter {859 fn convert_transaction(&self, transaction: pallet_ethereum::Transaction) -> UncheckedExtrinsic {860 UncheckedExtrinsic::new_unsigned(861 pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),862 )863 }864}865866impl fp_rpc::ConvertTransaction<opaque::UncheckedExtrinsic> for TransactionConverter {867 fn convert_transaction(868 &self,869 transaction: pallet_ethereum::Transaction,870 ) -> opaque::UncheckedExtrinsic {871 let extrinsic = UncheckedExtrinsic::new_unsigned(872 pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),873 );874 let encoded = extrinsic.encode();875 opaque::UncheckedExtrinsic::decode(&mut &encoded[..])876 .expect("Encoded extrinsic is always valid")877 }878}879880/// The address format for describing accounts.881pub type Address = sp_runtime::MultiAddress<AccountId, ()>;882/// Block header type as expected by this runtime.883pub type Header = generic::Header<BlockNumber, BlakeTwo256>;884/// Block type as expected by this runtime.885pub type Block = generic::Block<Header, UncheckedExtrinsic>;886/// A Block signed with a Justification887pub type SignedBlock = generic::SignedBlock<Block>;888/// BlockId type as expected by this runtime.889pub type BlockId = generic::BlockId<Block>;890/// The SignedExtension to the basic transaction logic.891pub type SignedExtra = (892 system::CheckSpecVersion<Runtime>,893 // system::CheckTxVersion<Runtime>,894 system::CheckGenesis<Runtime>,895 system::CheckEra<Runtime>,896 system::CheckNonce<Runtime>,897 system::CheckWeight<Runtime>,898 pallet_nft_charge_transaction::ChargeTransactionPayment<Runtime>,899 //pallet_contract_helpers::ContractHelpersExtension<Runtime>,900);901/// Unchecked extrinsic type as expected by this runtime.902pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signature, SignedExtra>;903/// Extrinsic type that has already been checked.904pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Call, SignedExtra>;905/// Executive: handles dispatch to the various modules.906pub type Executive = frame_executive::Executive<907 Runtime,908 Block,909 frame_system::ChainContext<Runtime>,910 Runtime,911 AllPallets,912>;913914impl_opaque_keys! {915 pub struct SessionKeys {916 pub aura: Aura,917 }918}919920impl fp_self_contained::SelfContainedCall for Call {921 type SignedInfo = H160;922923 fn is_self_contained(&self) -> bool {924 match self {925 Call::Ethereum(call) => call.is_self_contained(),926 _ => false,927 }928 }929930 fn check_self_contained(&self) -> Option<Result<Self::SignedInfo, TransactionValidityError>> {931 match self {932 Call::Ethereum(call) => call.check_self_contained(),933 _ => None,934 }935 }936937 fn validate_self_contained(&self, info: &Self::SignedInfo) -> Option<TransactionValidity> {938 match self {939 Call::Ethereum(call) => call.validate_self_contained(info),940 _ => None,941 }942 }943944 fn pre_dispatch_self_contained(945 &self,946 info: &Self::SignedInfo,947 ) -> Option<Result<(), TransactionValidityError>> {948 match self {949 Call::Ethereum(call) => call.pre_dispatch_self_contained(info),950 _ => None,951 }952 }953954 fn apply_self_contained(955 self,956 info: Self::SignedInfo,957 ) -> Option<sp_runtime::DispatchResultWithInfo<PostDispatchInfoOf<Self>>> {958 match self {959 call @ Call::Ethereum(pallet_ethereum::Call::transact { .. }) => Some(call.dispatch(960 Origin::from(pallet_ethereum::RawOrigin::EthereumTransaction(info)),961 )),962 _ => None,963 }964 }965}966967impl_runtime_apis! {968 impl pallet_nft::NftApi<Block>969 for Runtime970 {971 fn eth_contract_code(account: H160) -> Option<Vec<u8>> {972 <pallet_nft::NftErcSupport<Runtime>>::get_code(&account)973 }974 }975976 impl sp_api::Core<Block> for Runtime {977 fn version() -> RuntimeVersion {978 VERSION979 }980981 fn execute_block(block: Block) {982 Executive::execute_block(block)983 }984985 fn initialize_block(header: &<Block as BlockT>::Header) {986 Executive::initialize_block(header)987 }988 }989990 impl sp_api::Metadata<Block> for Runtime {991 fn metadata() -> OpaqueMetadata {992 OpaqueMetadata::new(Runtime::metadata().into())993 }994 }995996 impl sp_block_builder::BlockBuilder<Block> for Runtime {997 fn apply_extrinsic(extrinsic: <Block as BlockT>::Extrinsic) -> ApplyExtrinsicResult {998 Executive::apply_extrinsic(extrinsic)999 }10001001 fn finalize_block() -> <Block as BlockT>::Header {1002 Executive::finalize_block()1003 }10041005 fn inherent_extrinsics(data: sp_inherents::InherentData) -> Vec<<Block as BlockT>::Extrinsic> {1006 data.create_extrinsics()1007 }10081009 fn check_inherents(1010 block: Block,1011 data: sp_inherents::InherentData,1012 ) -> sp_inherents::CheckInherentsResult {1013 data.check_extrinsics(&block)1014 }10151016 // fn random_seed() -> <Block as BlockT>::Hash {1017 // RandomnessCollectiveFlip::random_seed().01018 // }1019 }10201021 impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {1022 fn validate_transaction(1023 source: TransactionSource,1024 tx: <Block as BlockT>::Extrinsic,1025 hash: <Block as BlockT>::Hash,1026 ) -> TransactionValidity {1027 Executive::validate_transaction(source, tx, hash)1028 }1029 }10301031 impl sp_offchain::OffchainWorkerApi<Block> for Runtime {1032 fn offchain_worker(header: &<Block as BlockT>::Header) {1033 Executive::offchain_worker(header)1034 }1035 }10361037 impl fp_rpc::EthereumRuntimeRPCApi<Block> for Runtime {1038 fn chain_id() -> u64 {1039 <Runtime as pallet_evm::Config>::ChainId::get()1040 }10411042 fn account_basic(address: H160) -> EVMAccount {1043 EVM::account_basic(&address)1044 }10451046 fn gas_price() -> U256 {1047 <Runtime as pallet_evm::Config>::FeeCalculator::min_gas_price()1048 }10491050 fn account_code_at(address: H160) -> Vec<u8> {1051 EVM::account_codes(address)1052 }10531054 fn author() -> H160 {1055 <pallet_evm::Pallet<Runtime>>::find_author()1056 }10571058 fn storage_at(address: H160, index: U256) -> H256 {1059 let mut tmp = [0u8; 32];1060 index.to_big_endian(&mut tmp);1061 EVM::account_storages(address, H256::from_slice(&tmp[..]))1062 }10631064 fn call(1065 from: H160,1066 to: H160,1067 data: Vec<u8>,1068 value: U256,1069 gas_limit: U256,1070 gas_price: Option<U256>,1071 nonce: Option<U256>,1072 estimate: bool,1073 ) -> Result<pallet_evm::CallInfo, sp_runtime::DispatchError> {1074 let config = if estimate {1075 let mut config = <Runtime as pallet_evm::Config>::config().clone();1076 config.estimate = true;1077 Some(config)1078 } else {1079 None1080 };10811082 <Runtime as pallet_evm::Config>::Runner::call(1083 from,1084 to,1085 data,1086 value,1087 gas_limit.low_u64(),1088 gas_price,1089 nonce,1090 config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),1091 ).map_err(|err| err.into())1092 }10931094 fn create(1095 from: H160,1096 data: Vec<u8>,1097 value: U256,1098 gas_limit: U256,1099 gas_price: Option<U256>,1100 nonce: Option<U256>,1101 estimate: bool,1102 ) -> Result<pallet_evm::CreateInfo, sp_runtime::DispatchError> {1103 let config = if estimate {1104 let mut config = <Runtime as pallet_evm::Config>::config().clone();1105 config.estimate = true;1106 Some(config)1107 } else {1108 None1109 };11101111 <Runtime as pallet_evm::Config>::Runner::create(1112 from,1113 data,1114 value,1115 gas_limit.low_u64(),1116 gas_price,1117 nonce,1118 config.as_ref().unwrap_or_else(|| <Runtime as pallet_evm::Config>::config()),1119 ).map_err(|err| err.into())1120 }11211122 fn current_transaction_statuses() -> Option<Vec<TransactionStatus>> {1123 Ethereum::current_transaction_statuses()1124 }11251126 fn current_block() -> Option<pallet_ethereum::Block> {1127 Ethereum::current_block()1128 }11291130 fn current_receipts() -> Option<Vec<pallet_ethereum::Receipt>> {1131 Ethereum::current_receipts()1132 }11331134 fn current_all() -> (1135 Option<pallet_ethereum::Block>,1136 Option<Vec<pallet_ethereum::Receipt>>,1137 Option<Vec<TransactionStatus>>1138 ) {1139 (1140 Ethereum::current_block(),1141 Ethereum::current_receipts(),1142 Ethereum::current_transaction_statuses()1143 )1144 }11451146 fn extrinsic_filter(xts: Vec<<Block as sp_api::BlockT>::Extrinsic>) -> Vec<pallet_ethereum::Transaction> {1147 xts.into_iter().filter_map(|xt| match xt.function {1148 Call::Ethereum(pallet_ethereum::Call::transact { transaction }) => Some(transaction),1149 _ => None1150 }).collect()1151 }1152 }11531154 impl sp_session::SessionKeys<Block> for Runtime {1155 fn decode_session_keys(1156 encoded: Vec<u8>,1157 ) -> Option<Vec<(Vec<u8>, KeyTypeId)>> {1158 SessionKeys::decode_into_raw_public_keys(&encoded)1159 }11601161 fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8> {1162 SessionKeys::generate(seed)1163 }1164 }11651166 impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {1167 fn slot_duration() -> sp_consensus_aura::SlotDuration {1168 sp_consensus_aura::SlotDuration::from_millis(Aura::slot_duration())1169 }11701171 fn authorities() -> Vec<AuraId> {1172 Aura::authorities().to_vec()1173 }1174 }11751176 impl cumulus_primitives_core::CollectCollationInfo<Block> for Runtime {1177 fn collect_collation_info() -> cumulus_primitives_core::CollationInfo {1178 ParachainSystem::collect_collation_info()1179 }1180 }11811182 impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {1183 fn account_nonce(account: AccountId) -> Index {1184 System::account_nonce(account)1185 }1186 }11871188 impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance> for Runtime {1189 fn query_info(uxt: <Block as BlockT>::Extrinsic, len: u32) -> RuntimeDispatchInfo<Balance> {1190 TransactionPayment::query_info(uxt, len)1191 }1192 fn query_fee_details(uxt: <Block as BlockT>::Extrinsic, len: u32) -> FeeDetails<Balance> {1193 TransactionPayment::query_fee_details(uxt, len)1194 }1195 }11961197 /*1198 impl pallet_contracts_rpc_runtime_api::ContractsApi<Block, AccountId, Balance, BlockNumber, Hash>1199 for Runtime1200 {1201 fn call(1202 origin: AccountId,1203 dest: AccountId,1204 value: Balance,1205 gas_limit: u64,1206 input_data: Vec<u8>,1207 ) -> pallet_contracts_primitives::ContractExecResult {1208 Contracts::bare_call(origin, dest, value, gas_limit, input_data, false)1209 }12101211 fn instantiate(1212 origin: AccountId,1213 endowment: Balance,1214 gas_limit: u64,1215 code: pallet_contracts_primitives::Code<Hash>,1216 data: Vec<u8>,1217 salt: Vec<u8>,1218 ) -> pallet_contracts_primitives::ContractInstantiateResult<AccountId, BlockNumber>1219 {1220 Contracts::bare_instantiate(origin, endowment, gas_limit, code, data, salt, true, false)1221 }12221223 fn get_storage(1224 address: AccountId,1225 key: [u8; 32],1226 ) -> pallet_contracts_primitives::GetStorageResult {1227 Contracts::get_storage(address, key)1228 }12291230 fn rent_projection(1231 address: AccountId,1232 ) -> pallet_contracts_primitives::RentProjectionResult<BlockNumber> {1233 Contracts::rent_projection(address)1234 }1235 }1236 */12371238 #[cfg(feature = "runtime-benchmarks")]1239 impl frame_benchmarking::Benchmark<Block> for Runtime {1240 fn dispatch_benchmark(1241 config: frame_benchmarking::BenchmarkConfig1242 ) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {1243 use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark, TrackedStorageKey};12441245 let whitelist: Vec<TrackedStorageKey> = vec![1246 // Alice account1247 hex_literal::hex!("d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d").to_vec().into(),1248 // // Total Issuance1249 // hex_literal::hex!("c2261276cc9d1f8598ea4b6a74b15c2f57c875e4cff74148e4628f264b974c80").to_vec().into(),1250 // // Execution Phase1251 // hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef7ff553b5a9862a516939d82b3d3d8661a").to_vec().into(),1252 // // Event Count1253 // hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef70a98fdbe9ce6c55837576c60c7af3850").to_vec().into(),1254 // // System Events1255 // hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7").to_vec().into(),1256 ];12571258 let mut batches = Vec::<BenchmarkBatch>::new();1259 let params = (&config, &whitelist);12601261 add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);1262 add_benchmark!(params, batches, pallet_nft, Nft);1263 add_benchmark!(params, batches, pallet_inflation, Inflation);12641265 if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }1266 Ok(batches)1267 }1268 }1269}12701271struct CheckInherents;12721273impl cumulus_pallet_parachain_system::CheckInherents<Block> for CheckInherents {1274 fn check_inherents(1275 block: &Block,1276 relay_state_proof: &cumulus_pallet_parachain_system::RelayChainStateProof,1277 ) -> sp_inherents::CheckInherentsResult {1278 let relay_chain_slot = relay_state_proof1279 .read_slot()1280 .expect("Could not read the relay chain slot from the proof");12811282 let inherent_data =1283 cumulus_primitives_timestamp::InherentDataProvider::from_relay_chain_slot_and_duration(1284 relay_chain_slot,1285 sp_std::time::Duration::from_secs(6),1286 )1287 .create_inherent_data()1288 .expect("Could not create the timestamp inherent data");12891290 inherent_data.check_extrinsics(block)1291 }1292}12931294cumulus_pallet_parachain_system::register_validate_block!(1295 Runtime = Runtime,1296 BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,1297 CheckInherents = CheckInherents,1298);