difftreelog
Merge pull request #808 from UniqueNetwork/fix/try-runtime-0.9.36
in: master
9 files changed
.docker/Dockerfile-try-runtimediffbeforeafterboth--- a/.docker/Dockerfile-try-runtime
+++ b/.docker/Dockerfile-try-runtime
@@ -46,4 +46,4 @@
echo "Fork from: $REPLICA_FROM\n" && \
cargo build --features=try-runtime,${NETWORK}-runtime --release
-CMD cargo run --features=try-runtime,${NETWORK}-runtime --release -- try-runtime -ltry-runtime::cli=debug --no-spec-check-panic on-runtime-upgrade live --uri $REPLICA_FROM
+CMD cargo run --release --features ${NETWORK}-runtime,try-runtime -- try-runtime --runtime target/release/wbuild/${NETWORK}-runtime/${NETWORK}_runtime.compact.compressed.wasm -lruntime=debug -ltry-runtime::cli=debug on-runtime-upgrade --checks live --uri $REPLICA_FROM
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2467,7 +2467,7 @@
[[package]]
name = "fc-consensus"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"async-trait",
"fc-db",
@@ -2486,7 +2486,7 @@
[[package]]
name = "fc-db"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"fp-storage",
"kvdb-rocksdb",
@@ -2505,7 +2505,7 @@
[[package]]
name = "fc-mapping-sync"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"fc-db",
"fp-consensus",
@@ -2522,7 +2522,7 @@
[[package]]
name = "fc-rpc"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"ethereum 0.14.0",
"ethereum-types 0.14.1",
@@ -2565,7 +2565,7 @@
[[package]]
name = "fc-rpc-core"
version = "1.1.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"ethereum 0.14.0",
"ethereum-types 0.14.1",
@@ -2730,7 +2730,7 @@
[[package]]
name = "fp-consensus"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"ethereum 0.14.0",
"parity-scale-codec 3.2.1",
@@ -2742,7 +2742,7 @@
[[package]]
name = "fp-ethereum"
version = "1.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"ethereum 0.14.0",
"ethereum-types 0.14.1",
@@ -2757,7 +2757,7 @@
[[package]]
name = "fp-evm"
version = "3.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"evm",
"frame-support",
@@ -2771,7 +2771,7 @@
[[package]]
name = "fp-evm-mapping"
version = "0.1.0"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"frame-support",
"sp-core",
@@ -2780,7 +2780,7 @@
[[package]]
name = "fp-rpc"
version = "3.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"ethereum 0.14.0",
"ethereum-types 0.14.1",
@@ -2797,7 +2797,7 @@
[[package]]
name = "fp-self-contained"
version = "1.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"ethereum 0.14.0",
"frame-support",
@@ -2810,7 +2810,7 @@
[[package]]
name = "fp-storage"
version = "2.0.0"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"parity-scale-codec 3.2.1",
"serde",
@@ -5682,7 +5682,7 @@
[[package]]
name = "pallet-base-fee"
version = "1.0.0"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"fp-evm",
"frame-support",
@@ -5918,7 +5918,7 @@
[[package]]
name = "pallet-ethereum"
version = "4.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"ethereum 0.14.0",
"ethereum-types 0.14.1",
@@ -5946,7 +5946,7 @@
[[package]]
name = "pallet-evm"
version = "6.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"environmental",
"evm",
@@ -6032,7 +6032,7 @@
[[package]]
name = "pallet-evm-precompile-simple"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#db60b911813df1d82e60e0de7f3dfa290e60d2f0"
+source = "git+https://github.com/uniquenetwork/frontier?branch=unique-polkadot-v0.9.36#cf1894629c7df1c4dafe58aa773627a3d940da14"
dependencies = [
"fp-evm",
"ripemd",
@@ -12965,6 +12965,7 @@
"sp-core",
"sp-finality-grandpa",
"sp-inherents",
+ "sp-io",
"sp-keystore",
"sp-offchain",
"sp-runtime",
node/cli/Cargo.tomldiffbeforeafterboth1################################################################################2# Build Dependencies34[build-dependencies.substrate-build-script-utils]5git = "https://github.com/paritytech/substrate"6branch = "polkadot-v0.9.36"78################################################################################9# Substrate Dependecies1011[dependencies.codec]12default-features = false13features = ['derive']14package = 'parity-scale-codec'15version = '3.1.2'1617[dependencies.frame-benchmarking]18git = "https://github.com/paritytech/substrate"19branch = "polkadot-v0.9.36"2021[dependencies.frame-benchmarking-cli]22git = "https://github.com/paritytech/substrate"23branch = "polkadot-v0.9.36"2425[dependencies.try-runtime-cli]26git = "https://github.com/paritytech/substrate"27branch = "polkadot-v0.9.36"2829[dependencies.pallet-transaction-payment-rpc]30git = "https://github.com/paritytech/substrate"31branch = "polkadot-v0.9.36"3233[dependencies.substrate-prometheus-endpoint]34git = "https://github.com/paritytech/substrate"35branch = "polkadot-v0.9.36"3637[dependencies.sc-basic-authorship]38git = "https://github.com/paritytech/substrate"39branch = "polkadot-v0.9.36"4041[dependencies.sc-chain-spec]42git = "https://github.com/paritytech/substrate"43branch = "polkadot-v0.9.36"4445[dependencies.sc-cli]46git = "https://github.com/paritytech/substrate"47branch = "polkadot-v0.9.36"4849[dependencies.sc-client-api]50git = "https://github.com/paritytech/substrate"51branch = "polkadot-v0.9.36"5253[dependencies.sc-consensus]54git = "https://github.com/paritytech/substrate"55branch = "polkadot-v0.9.36"5657[dependencies.sc-consensus-aura]58git = "https://github.com/paritytech/substrate"59branch = "polkadot-v0.9.36"6061[dependencies.sc-executor]62git = "https://github.com/paritytech/substrate"63branch = "polkadot-v0.9.36"6465[dependencies.sc-finality-grandpa]66git = "https://github.com/paritytech/substrate"67branch = "polkadot-v0.9.36"6869[dependencies.sc-keystore]70git = "https://github.com/paritytech/substrate"71branch = "polkadot-v0.9.36"7273[dependencies.sc-rpc]74git = "https://github.com/paritytech/substrate"75branch = "polkadot-v0.9.36"7677[dependencies.sc-rpc-api]78git = "https://github.com/paritytech/substrate"79branch = "polkadot-v0.9.36"8081[dependencies.sc-service]82git = "https://github.com/paritytech/substrate"83branch = "polkadot-v0.9.36"8485[dependencies.sc-telemetry]86git = "https://github.com/paritytech/substrate"87branch = "polkadot-v0.9.36"8889[dependencies.sc-transaction-pool]90git = "https://github.com/paritytech/substrate"91branch = "polkadot-v0.9.36"9293[dependencies.sc-tracing]94git = "https://github.com/paritytech/substrate"95branch = "polkadot-v0.9.36"9697[dependencies.sc-sysinfo]98git = "https://github.com/paritytech/substrate"99branch = "polkadot-v0.9.36"100101[dependencies.sp-block-builder]102git = "https://github.com/paritytech/substrate"103branch = "polkadot-v0.9.36"104105[dependencies.sp-api]106git = "https://github.com/paritytech/substrate"107branch = "polkadot-v0.9.36"108109[dependencies.sp-blockchain]110git = "https://github.com/paritytech/substrate"111branch = "polkadot-v0.9.36"112113[dependencies.sp-consensus]114git = "https://github.com/paritytech/substrate"115branch = "polkadot-v0.9.36"116117[dependencies.sp-consensus-aura]118git = "https://github.com/paritytech/substrate"119branch = "polkadot-v0.9.36"120121[dependencies.sp-core]122git = "https://github.com/paritytech/substrate"123branch = "polkadot-v0.9.36"124125[dependencies.sp-finality-grandpa]126git = "https://github.com/paritytech/substrate"127branch = "polkadot-v0.9.36"128129[dependencies.sp-inherents]130git = "https://github.com/paritytech/substrate"131branch = "polkadot-v0.9.36"132133[dependencies.sp-keystore]134git = "https://github.com/paritytech/substrate"135branch = "polkadot-v0.9.36"136137[dependencies.sp-offchain]138git = "https://github.com/paritytech/substrate"139branch = "polkadot-v0.9.36"140141[dependencies.sp-runtime]142git = "https://github.com/paritytech/substrate"143branch = "polkadot-v0.9.36"144145[dependencies.sp-session]146git = "https://github.com/paritytech/substrate"147branch = "polkadot-v0.9.36"148149[dependencies.sp-timestamp]150git = "https://github.com/paritytech/substrate"151branch = "polkadot-v0.9.36"152153[dependencies.sp-transaction-pool]154git = "https://github.com/paritytech/substrate"155branch = "polkadot-v0.9.36"156157[dependencies.sp-trie]158git = "https://github.com/paritytech/substrate"159branch = "polkadot-v0.9.36"160161[dependencies.substrate-frame-rpc-system]162git = "https://github.com/paritytech/substrate"163branch = "polkadot-v0.9.36"164165[dependencies.sc-network]166git = "https://github.com/paritytech/substrate"167branch = "polkadot-v0.9.36"168169[dependencies.serde]170features = ['derive']171version = '1.0.130'172173[dependencies.serde_json]174version = '1.0.68'175176[dependencies.sc-consensus-manual-seal]177git = "https://github.com/paritytech/substrate"178branch = "polkadot-v0.9.36"179180################################################################################181# Cumulus dependencies182183[dependencies.cumulus-client-consensus-aura]184git = "https://github.com/paritytech/cumulus"185branch = "polkadot-v0.9.36"186187[dependencies.cumulus-client-consensus-common]188git = "https://github.com/paritytech/cumulus"189branch = "polkadot-v0.9.36"190191[dependencies.cumulus-client-collator]192git = "https://github.com/paritytech/cumulus"193branch = "polkadot-v0.9.36"194195[dependencies.cumulus-client-cli]196git = "https://github.com/paritytech/cumulus"197branch = "polkadot-v0.9.36"198199[dependencies.cumulus-client-network]200git = "https://github.com/paritytech/cumulus"201branch = "polkadot-v0.9.36"202203[dependencies.cumulus-primitives-core]204git = "https://github.com/paritytech/cumulus"205branch = "polkadot-v0.9.36"206207[dependencies.cumulus-primitives-parachain-inherent]208git = "https://github.com/paritytech/cumulus"209branch = "polkadot-v0.9.36"210211[dependencies.cumulus-client-service]212git = "https://github.com/paritytech/cumulus"213branch = "polkadot-v0.9.36"214215[dependencies.cumulus-relay-chain-interface]216git = "https://github.com/paritytech/cumulus"217branch = "polkadot-v0.9.36"218219[dependencies.cumulus-relay-chain-inprocess-interface]220git = "https://github.com/paritytech/cumulus"221branch = "polkadot-v0.9.36"222223[dependencies.cumulus-relay-chain-minimal-node]224git = "https://github.com/paritytech/cumulus"225branch = "polkadot-v0.9.36"226227################################################################################228# Polkadot dependencies229[dependencies.polkadot-primitives]230git = "https://github.com/paritytech/polkadot"231branch = "release-v0.9.36"232233[dependencies.polkadot-service]234git = "https://github.com/paritytech/polkadot"235branch = "release-v0.9.36"236237[dependencies.polkadot-cli]238git = "https://github.com/paritytech/polkadot"239branch = "release-v0.9.36"240241[dependencies.polkadot-test-service]242git = "https://github.com/paritytech/polkadot"243branch = "release-v0.9.36"244245[dependencies.polkadot-parachain]246git = "https://github.com/paritytech/polkadot"247branch = "release-v0.9.36"248249250################################################################################251# Local dependencies252253[dependencies.up-common]254path = "../../primitives/common"255256[dependencies.unique-runtime]257path = '../../runtime/unique'258optional = true259260[dependencies.quartz-runtime]261path = '../../runtime/quartz'262optional = true263264[dependencies.opal-runtime]265path = '../../runtime/opal'266optional = true267268[dependencies.up-data-structs]269path = "../../primitives/data-structs"270default-features = false271272[dependencies.up-rpc]273path = "../../primitives/rpc"274275[dependencies.pallet-transaction-payment-rpc-runtime-api]276git = "https://github.com/paritytech/substrate"277branch = "polkadot-v0.9.36"278279################################################################################280# Package281282[package]283authors = ['Unique Network <support@uniquenetwork.io>']284build = 'build.rs'285description = 'Unique Node'286edition = '2021'287homepage = 'https://unique.network'288license = 'GPLv3'289name = 'unique-node'290repository = 'https://github.com/UniqueNetwork/unique-chain'291version.workspace = true292293[[bin]]294name = 'unique-collator'295path = "src/main.rs"296297[package.metadata.docs.rs]298targets = ['x86_64-unknown-linux-gnu']299300[dependencies]301futures = '0.3.17'302log = '0.4.16'303flexi_logger = "0.24.2"304parking_lot = '0.12.1'305clap = "4.0.9"306jsonrpsee = { version = "0.16.2", features = ["server", "macros"] }307tokio = { version = "1.19.2", features = ["time"] }308309fc-rpc-core = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }310fc-consensus = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }311fc-mapping-sync = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }312fc-rpc = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }313fc-db = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }314fp-rpc = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }315pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }316317unique-rpc = { default-features = false, path = "../rpc" }318app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }319rmrk-rpc = { path = "../../primitives/rmrk-rpc" }320321[features]322default = ["opal-runtime"]323runtime-benchmarks = [324 'unique-runtime?/runtime-benchmarks',325 'quartz-runtime?/runtime-benchmarks',326 'opal-runtime/runtime-benchmarks',327 'polkadot-service/runtime-benchmarks',328 'polkadot-cli/runtime-benchmarks',329 'sc-service/runtime-benchmarks',330]331try-runtime = [332 'unique-runtime?/try-runtime',333 'quartz-runtime?/try-runtime',334 'opal-runtime?/try-runtime',335 'try-runtime-cli/try-runtime',336]337sapphire-runtime = ['opal-runtime', 'opal-runtime/become-sapphire']1################################################################################2# Build Dependencies34[build-dependencies.substrate-build-script-utils]5git = "https://github.com/paritytech/substrate"6branch = "polkadot-v0.9.36"78################################################################################9# Substrate Dependecies1011[dependencies.codec]12default-features = false13features = ['derive']14package = 'parity-scale-codec'15version = '3.1.2'1617[dependencies.frame-benchmarking]18git = "https://github.com/paritytech/substrate"19branch = "polkadot-v0.9.36"2021[dependencies.frame-benchmarking-cli]22git = "https://github.com/paritytech/substrate"23branch = "polkadot-v0.9.36"2425[dependencies.try-runtime-cli]26git = "https://github.com/paritytech/substrate"27branch = "polkadot-v0.9.36"2829[dependencies.pallet-transaction-payment-rpc]30git = "https://github.com/paritytech/substrate"31branch = "polkadot-v0.9.36"3233[dependencies.substrate-prometheus-endpoint]34git = "https://github.com/paritytech/substrate"35branch = "polkadot-v0.9.36"3637[dependencies.sc-basic-authorship]38git = "https://github.com/paritytech/substrate"39branch = "polkadot-v0.9.36"4041[dependencies.sc-chain-spec]42git = "https://github.com/paritytech/substrate"43branch = "polkadot-v0.9.36"4445[dependencies.sc-cli]46git = "https://github.com/paritytech/substrate"47branch = "polkadot-v0.9.36"4849[dependencies.sc-client-api]50git = "https://github.com/paritytech/substrate"51branch = "polkadot-v0.9.36"5253[dependencies.sc-consensus]54git = "https://github.com/paritytech/substrate"55branch = "polkadot-v0.9.36"5657[dependencies.sc-consensus-aura]58git = "https://github.com/paritytech/substrate"59branch = "polkadot-v0.9.36"6061[dependencies.sc-executor]62git = "https://github.com/paritytech/substrate"63branch = "polkadot-v0.9.36"6465[dependencies.sc-finality-grandpa]66git = "https://github.com/paritytech/substrate"67branch = "polkadot-v0.9.36"6869[dependencies.sc-keystore]70git = "https://github.com/paritytech/substrate"71branch = "polkadot-v0.9.36"7273[dependencies.sc-rpc]74git = "https://github.com/paritytech/substrate"75branch = "polkadot-v0.9.36"7677[dependencies.sc-rpc-api]78git = "https://github.com/paritytech/substrate"79branch = "polkadot-v0.9.36"8081[dependencies.sc-service]82git = "https://github.com/paritytech/substrate"83branch = "polkadot-v0.9.36"8485[dependencies.sc-telemetry]86git = "https://github.com/paritytech/substrate"87branch = "polkadot-v0.9.36"8889[dependencies.sc-transaction-pool]90git = "https://github.com/paritytech/substrate"91branch = "polkadot-v0.9.36"9293[dependencies.sc-tracing]94git = "https://github.com/paritytech/substrate"95branch = "polkadot-v0.9.36"9697[dependencies.sc-sysinfo]98git = "https://github.com/paritytech/substrate"99branch = "polkadot-v0.9.36"100101[dependencies.sp-block-builder]102git = "https://github.com/paritytech/substrate"103branch = "polkadot-v0.9.36"104105[dependencies.sp-api]106git = "https://github.com/paritytech/substrate"107branch = "polkadot-v0.9.36"108109[dependencies.sp-blockchain]110git = "https://github.com/paritytech/substrate"111branch = "polkadot-v0.9.36"112113[dependencies.sp-consensus]114git = "https://github.com/paritytech/substrate"115branch = "polkadot-v0.9.36"116117[dependencies.sp-consensus-aura]118git = "https://github.com/paritytech/substrate"119branch = "polkadot-v0.9.36"120121[dependencies.sp-core]122git = "https://github.com/paritytech/substrate"123branch = "polkadot-v0.9.36"124125[dependencies.sp-io]126git = "https://github.com/paritytech/substrate"127branch = "polkadot-v0.9.36"128129[dependencies.sp-finality-grandpa]130git = "https://github.com/paritytech/substrate"131branch = "polkadot-v0.9.36"132133[dependencies.sp-inherents]134git = "https://github.com/paritytech/substrate"135branch = "polkadot-v0.9.36"136137[dependencies.sp-keystore]138git = "https://github.com/paritytech/substrate"139branch = "polkadot-v0.9.36"140141[dependencies.sp-offchain]142git = "https://github.com/paritytech/substrate"143branch = "polkadot-v0.9.36"144145[dependencies.sp-runtime]146git = "https://github.com/paritytech/substrate"147branch = "polkadot-v0.9.36"148149[dependencies.sp-session]150git = "https://github.com/paritytech/substrate"151branch = "polkadot-v0.9.36"152153[dependencies.sp-timestamp]154git = "https://github.com/paritytech/substrate"155branch = "polkadot-v0.9.36"156157[dependencies.sp-transaction-pool]158git = "https://github.com/paritytech/substrate"159branch = "polkadot-v0.9.36"160161[dependencies.sp-trie]162git = "https://github.com/paritytech/substrate"163branch = "polkadot-v0.9.36"164165[dependencies.substrate-frame-rpc-system]166git = "https://github.com/paritytech/substrate"167branch = "polkadot-v0.9.36"168169[dependencies.sc-network]170git = "https://github.com/paritytech/substrate"171branch = "polkadot-v0.9.36"172173[dependencies.serde]174features = ['derive']175version = '1.0.130'176177[dependencies.serde_json]178version = '1.0.68'179180[dependencies.sc-consensus-manual-seal]181git = "https://github.com/paritytech/substrate"182branch = "polkadot-v0.9.36"183184################################################################################185# Cumulus dependencies186187[dependencies.cumulus-client-consensus-aura]188git = "https://github.com/paritytech/cumulus"189branch = "polkadot-v0.9.36"190191[dependencies.cumulus-client-consensus-common]192git = "https://github.com/paritytech/cumulus"193branch = "polkadot-v0.9.36"194195[dependencies.cumulus-client-collator]196git = "https://github.com/paritytech/cumulus"197branch = "polkadot-v0.9.36"198199[dependencies.cumulus-client-cli]200git = "https://github.com/paritytech/cumulus"201branch = "polkadot-v0.9.36"202203[dependencies.cumulus-client-network]204git = "https://github.com/paritytech/cumulus"205branch = "polkadot-v0.9.36"206207[dependencies.cumulus-primitives-core]208git = "https://github.com/paritytech/cumulus"209branch = "polkadot-v0.9.36"210211[dependencies.cumulus-primitives-parachain-inherent]212git = "https://github.com/paritytech/cumulus"213branch = "polkadot-v0.9.36"214215[dependencies.cumulus-client-service]216git = "https://github.com/paritytech/cumulus"217branch = "polkadot-v0.9.36"218219[dependencies.cumulus-relay-chain-interface]220git = "https://github.com/paritytech/cumulus"221branch = "polkadot-v0.9.36"222223[dependencies.cumulus-relay-chain-inprocess-interface]224git = "https://github.com/paritytech/cumulus"225branch = "polkadot-v0.9.36"226227[dependencies.cumulus-relay-chain-minimal-node]228git = "https://github.com/paritytech/cumulus"229branch = "polkadot-v0.9.36"230231################################################################################232# Polkadot dependencies233[dependencies.polkadot-primitives]234git = "https://github.com/paritytech/polkadot"235branch = "release-v0.9.36"236237[dependencies.polkadot-service]238git = "https://github.com/paritytech/polkadot"239branch = "release-v0.9.36"240241[dependencies.polkadot-cli]242git = "https://github.com/paritytech/polkadot"243branch = "release-v0.9.36"244245[dependencies.polkadot-test-service]246git = "https://github.com/paritytech/polkadot"247branch = "release-v0.9.36"248249[dependencies.polkadot-parachain]250git = "https://github.com/paritytech/polkadot"251branch = "release-v0.9.36"252253254################################################################################255# Local dependencies256257[dependencies.up-common]258path = "../../primitives/common"259260[dependencies.unique-runtime]261path = '../../runtime/unique'262optional = true263264[dependencies.quartz-runtime]265path = '../../runtime/quartz'266optional = true267268[dependencies.opal-runtime]269path = '../../runtime/opal'270optional = true271272[dependencies.up-data-structs]273path = "../../primitives/data-structs"274default-features = false275276[dependencies.up-rpc]277path = "../../primitives/rpc"278279[dependencies.pallet-transaction-payment-rpc-runtime-api]280git = "https://github.com/paritytech/substrate"281branch = "polkadot-v0.9.36"282283################################################################################284# Package285286[package]287authors = ['Unique Network <support@uniquenetwork.io>']288build = 'build.rs'289description = 'Unique Node'290edition = '2021'291homepage = 'https://unique.network'292license = 'GPLv3'293name = 'unique-node'294repository = 'https://github.com/UniqueNetwork/unique-chain'295version.workspace = true296297[[bin]]298name = 'unique-collator'299path = "src/main.rs"300301[package.metadata.docs.rs]302targets = ['x86_64-unknown-linux-gnu']303304[dependencies]305futures = '0.3.17'306log = '0.4.16'307flexi_logger = "0.24.2"308parking_lot = '0.12.1'309clap = "4.0.9"310jsonrpsee = { version = "0.16.2", features = ["server", "macros"] }311tokio = { version = "1.19.2", features = ["time"] }312313fc-rpc-core = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }314fc-consensus = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }315fc-mapping-sync = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }316fc-rpc = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }317fc-db = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }318fp-rpc = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }319pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }320321unique-rpc = { default-features = false, path = "../rpc" }322app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }323rmrk-rpc = { path = "../../primitives/rmrk-rpc" }324325[features]326default = ["opal-runtime"]327runtime-benchmarks = [328 'unique-runtime?/runtime-benchmarks',329 'quartz-runtime?/runtime-benchmarks',330 'opal-runtime/runtime-benchmarks',331 'polkadot-service/runtime-benchmarks',332 'polkadot-cli/runtime-benchmarks',333 'sc-service/runtime-benchmarks',334]335try-runtime = [336 'unique-runtime?/try-runtime',337 'quartz-runtime?/try-runtime',338 'opal-runtime?/try-runtime',339 'try-runtime-cli/try-runtime',340]341sapphire-runtime = ['opal-runtime', 'opal-runtime/become-sapphire']node/cli/src/command.rsdiffbeforeafterboth--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -412,6 +412,7 @@
#[cfg(feature = "try-runtime")]
Some(Subcommand::TryRuntime(cmd)) => {
use std::{future::Future, pin::Pin};
+ use sc_executor::{sp_wasm_interface::ExtendedHostFunctions, NativeExecutionDispatch};
let runner = cli.create_runner(cmd)?;
@@ -429,12 +430,21 @@
Ok((
match config.chain_spec.runtime_id() {
#[cfg(feature = "unique-runtime")]
- RuntimeId::Unique => Box::pin(cmd.run::<Block, UniqueRuntimeExecutor>(config)),
+ RuntimeId::Unique => Box::pin(cmd.run::<Block, ExtendedHostFunctions<
+ sp_io::SubstrateHostFunctions,
+ <UniqueRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,
+ >>()),
#[cfg(feature = "quartz-runtime")]
- RuntimeId::Quartz => Box::pin(cmd.run::<Block, QuartzRuntimeExecutor>(config)),
+ RuntimeId::Quartz => Box::pin(cmd.run::<Block, ExtendedHostFunctions<
+ sp_io::SubstrateHostFunctions,
+ <QuartzRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,
+ >>()),
- RuntimeId::Opal => Box::pin(cmd.run::<Block, OpalRuntimeExecutor>(config)),
+ RuntimeId::Opal => Box::pin(cmd.run::<Block, ExtendedHostFunctions<
+ sp_io::SubstrateHostFunctions,
+ <OpalRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,
+ >>()),
RuntimeId::Unknown(chain) => return Err(no_runtime_err!(chain).into()),
},
task_manager,
node/cli/src/service.rsdiffbeforeafterboth--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -106,7 +106,12 @@
#[cfg(feature = "unique-runtime")]
impl NativeExecutionDispatch for UniqueRuntimeExecutor {
+ /// Only enable the benchmarking host functions when we actually want to benchmark.
+ #[cfg(feature = "runtime-benchmarks")]
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
+ /// Otherwise we only use the default Substrate host functions.
+ #[cfg(not(feature = "runtime-benchmarks"))]
+ type ExtendHostFunctions = ();
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
unique_runtime::api::dispatch(method, data)
@@ -119,7 +124,12 @@
#[cfg(feature = "quartz-runtime")]
impl NativeExecutionDispatch for QuartzRuntimeExecutor {
+ /// Only enable the benchmarking host functions when we actually want to benchmark.
+ #[cfg(feature = "runtime-benchmarks")]
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
+ /// Otherwise we only use the default Substrate host functions.
+ #[cfg(not(feature = "runtime-benchmarks"))]
+ type ExtendHostFunctions = ();
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
quartz_runtime::api::dispatch(method, data)
@@ -131,7 +141,12 @@
}
impl NativeExecutionDispatch for OpalRuntimeExecutor {
+ /// Only enable the benchmarking host functions when we actually want to benchmark.
+ #[cfg(feature = "runtime-benchmarks")]
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
+ /// Otherwise we only use the default Substrate host functions.
+ #[cfg(not(feature = "runtime-benchmarks"))]
+ type ExtendHostFunctions = ();
fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
opal_runtime::api::dispatch(method, data)
runtime/common/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -780,15 +780,16 @@
#[cfg(feature = "try-runtime")]
impl frame_try_runtime::TryRuntime<Block> for Runtime {
- fn on_runtime_upgrade() -> (frame_support::pallet_prelude::Weight, frame_support::pallet_prelude::Weight) {
+ fn on_runtime_upgrade(checks: bool) -> (frame_support::pallet_prelude::Weight, frame_support::pallet_prelude::Weight) {
log::info!("try-runtime::on_runtime_upgrade unique-chain.");
- let weight = Executive::try_runtime_upgrade().unwrap();
+ let weight = Executive::try_runtime_upgrade(checks).unwrap();
(weight, crate::config::substrate::RuntimeBlockWeights::get().max_block)
}
fn execute_block(
block: Block,
state_root_check: bool,
+ signature_check: bool,
select: frame_try_runtime::TryStateSelect
) -> frame_support::pallet_prelude::Weight {
log::info!(
@@ -799,7 +800,7 @@
select,
);
- Executive::try_execute_block(block, state_root_check, select).unwrap()
+ Executive::try_execute_block(block, state_root_check, signature_check, select).unwrap()
}
}
}
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -91,6 +91,7 @@
'pallet-unique-scheduler-v2/try-runtime',
'pallet-maintenance/try-runtime',
'pallet-test-utils?/try-runtime',
+ 'fp-self-contained/try-runtime',
]
std = [
'codec/std',
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -86,6 +86,7 @@
'pallet-evm-transaction-payment/try-runtime',
'pallet-evm-migration/try-runtime',
'pallet-maintenance/try-runtime',
+ 'fp-self-contained/try-runtime',
]
std = [
'codec/std',
runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -87,6 +87,7 @@
'pallet-evm-transaction-payment/try-runtime',
'pallet-evm-migration/try-runtime',
'pallet-maintenance/try-runtime',
+ 'fp-self-contained/try-runtime',
]
std = [
'codec/std',