git.delta.rocks / unique-network / refs/commits / 911b03c63217

difftreelog

fix wasm runtime version section

Yaroslav Bolyukin2023-09-08parent: #320ac9b.patch.diff
in: master

9 files changed

modifiednode/cli/Cargo.tomldiffbeforeafterboth
--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -108,4 +108,3 @@
 runtime-benchmarks = ['opal-runtime/runtime-benchmarks', 'polkadot-cli/runtime-benchmarks', 'polkadot-service/runtime-benchmarks', 'quartz-runtime?/runtime-benchmarks', 'sc-service/runtime-benchmarks', 'unique-runtime?/runtime-benchmarks']
 sapphire-runtime = ['quartz-runtime', 'quartz-runtime/become-sapphire']
 try-runtime = ['opal-runtime?/try-runtime', 'quartz-runtime?/try-runtime', 'try-runtime-cli/try-runtime', 'unique-runtime?/try-runtime']
-state-version-0 = ['opal-runtime?/state-version-0', 'quartz-runtime?/state-version-0', 'unique-runtime?/state-version-0']
modifiednode/cli/src/chain_spec.rsdiffbeforeafterboth
--- a/node/cli/src/chain_spec.rs
+++ b/node/cli/src/chain_spec.rs
@@ -281,7 +281,7 @@
 		// Name
 		format!(
 			"{}{}",
-			default_runtime::RUNTIME_NAME.to_uppercase(),
+			default_runtime::VERSION.spec_name.to_uppercase(),
 			if cfg!(feature = "unique-runtime") {
 				""
 			} else {
@@ -290,7 +290,7 @@
 		)
 		.as_str(),
 		// ID
-		format!("{}_dev", default_runtime::RUNTIME_NAME).as_str(),
+		format!("{}_dev", default_runtime::VERSION.spec_name).as_str(),
 		ChainType::Local,
 		move || {
 			testnet_genesis!(
@@ -355,7 +355,7 @@
 		// Name
 		format!(
 			"{}{}",
-			default_runtime::RUNTIME_NAME.to_uppercase(),
+			default_runtime::VERSION.impl_name.to_uppercase(),
 			if cfg!(feature = "unique-runtime") {
 				""
 			} else {
@@ -364,7 +364,7 @@
 		)
 		.as_str(),
 		// ID
-		format!("{}_local", default_runtime::RUNTIME_NAME).as_str(),
+		format!("{}_local", default_runtime::VERSION.spec_name).as_str(),
 		ChainType::Local,
 		move || {
 			testnet_genesis!(
modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
--- a/runtime/common/config/pallets/mod.rs
+++ b/runtime/common/config/pallets/mod.rs
@@ -24,7 +24,7 @@
 		weights::CommonWeights,
 		RelayChainBlockNumberProvider,
 	},
-	Runtime, RuntimeEvent, RuntimeCall, RUNTIME_NAME, TOKEN_SYMBOL, DECIMALS, Balances,
+	Runtime, RuntimeEvent, RuntimeCall, VERSION, TOKEN_SYMBOL, DECIMALS, Balances,
 };
 use frame_support::traits::{ConstU32, ConstU64, Currency};
 use up_common::{
@@ -90,7 +90,7 @@
 
 parameter_types! {
 	pub const Decimals: u8 = DECIMALS;
-	pub Name: String = RUNTIME_NAME.to_string();
+	pub Name: String = String::from_utf8_lossy(VERSION.impl_name.as_ref()).to_string();
 	pub Symbol: String = TOKEN_SYMBOL.to_string();
 }
 impl pallet_balances_adapter::Config for Runtime {
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -64,7 +64,6 @@
 	'sp-runtime/runtime-benchmarks',
 	'xcm-builder/runtime-benchmarks',
 ]
-state-version-0 = []
 std = [
 	'codec/std',
 	'cumulus-pallet-aura-ext/std',
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -43,22 +43,19 @@
 
 pub use runtime_common::*;
 
-pub const RUNTIME_NAME: &str = "opal";
 pub const TOKEN_SYMBOL: &str = "OPL";
 pub const DECIMALS: u8 = 18;
 
 /// This runtime version.
+#[sp_version::runtime_version]
 pub const VERSION: RuntimeVersion = RuntimeVersion {
-	spec_name: create_runtime_str!(RUNTIME_NAME),
-	impl_name: create_runtime_str!(RUNTIME_NAME),
+	spec_name: create_runtime_str!("opal"),
+	impl_name: create_runtime_str!("opal"),
 	authoring_version: 1,
 	spec_version: 943060,
 	impl_version: 0,
 	apis: RUNTIME_API_VERSIONS,
 	transaction_version: 3,
-	#[cfg(feature = "state-version-0")]
-	state_version: 0,
-	#[cfg(not(feature = "state-version-0"))]
 	state_version: 1,
 };
 
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -60,7 +60,6 @@
 	'sp-runtime/runtime-benchmarks',
 	'xcm-builder/runtime-benchmarks',
 ]
-state-version-0 = []
 std = [
 	'codec/std',
 	'cumulus-pallet-aura-ext/std',
modifiedruntime/quartz/src/lib.rsdiffbeforeafterboth
--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -43,25 +43,34 @@
 
 pub use runtime_common::*;
 
-#[cfg(feature = "become-sapphire")]
-pub const RUNTIME_NAME: &str = "sapphire";
-#[cfg(not(feature = "become-sapphire"))]
-pub const RUNTIME_NAME: &str = "quartz";
 pub const TOKEN_SYMBOL: &str = "QTZ";
 pub const DECIMALS: u8 = 18;
 
 /// This runtime version.
+#[cfg(not(feature = "become-sapphire"))]
+#[sp_version::runtime_version]
 pub const VERSION: RuntimeVersion = RuntimeVersion {
-	spec_name: create_runtime_str!(RUNTIME_NAME),
-	impl_name: create_runtime_str!(RUNTIME_NAME),
+	spec_name: create_runtime_str!("quartz"),
+	impl_name: create_runtime_str!("quartz"),
+
+	authoring_version: 1,
+	spec_version: 943060,
+	impl_version: 0,
+	apis: RUNTIME_API_VERSIONS,
+	transaction_version: 3,
+	state_version: 1,
+};
+#[cfg(feature = "become-sapphire")]
+#[sp_version::runtime_version]
+pub const VERSION: RuntimeVersion = RuntimeVersion {
+	spec_name: create_runtime_str!("sapphire"),
+	impl_name: create_runtime_str!("sapphire"),
+
 	authoring_version: 1,
 	spec_version: 943060,
 	impl_version: 0,
 	apis: RUNTIME_API_VERSIONS,
 	transaction_version: 3,
-	#[cfg(feature = "state-version-0")]
-	state_version: 0,
-	#[cfg(not(feature = "state-version-0"))]
 	state_version: 1,
 };
 
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
before · runtime/unique/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Unique Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'unique-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version.workspace = true1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'unique-runtime']20limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']21pov-estimate = []22runtime-benchmarks = [23	"pallet-preimage/runtime-benchmarks",24	'frame-benchmarking',25	'frame-support/runtime-benchmarks',26	'frame-system-benchmarking',27	'frame-system/runtime-benchmarks',28	'pallet-app-promotion/runtime-benchmarks',29	'pallet-balances/runtime-benchmarks',30	'pallet-collator-selection/runtime-benchmarks',31	'pallet-collective/runtime-benchmarks',32	'pallet-common/runtime-benchmarks',33	'pallet-configuration/runtime-benchmarks',34	'pallet-democracy/runtime-benchmarks',35	'pallet-ethereum/runtime-benchmarks',36	'pallet-evm-coder-substrate/runtime-benchmarks',37	'pallet-evm-migration/runtime-benchmarks',38	'pallet-foreign-assets/runtime-benchmarks',39	'pallet-fungible/runtime-benchmarks',40	'pallet-identity/runtime-benchmarks',41	'pallet-inflation/runtime-benchmarks',42	'pallet-maintenance/runtime-benchmarks',43	'pallet-membership/runtime-benchmarks',44	'pallet-nonfungible/runtime-benchmarks',45	'pallet-democracy/runtime-benchmarks',46	'pallet-collective/runtime-benchmarks',47	'pallet-ranked-collective/runtime-benchmarks',48	'pallet-membership/runtime-benchmarks',49	'pallet-referenda/runtime-benchmarks',50	'pallet-scheduler/runtime-benchmarks',51	'pallet-refungible/runtime-benchmarks',52	'pallet-scheduler/runtime-benchmarks',53	'pallet-structure/runtime-benchmarks',54	'pallet-timestamp/runtime-benchmarks',55	'pallet-unique/runtime-benchmarks',56	'pallet-xcm/runtime-benchmarks',57	'sp-runtime/runtime-benchmarks',58	'up-data-structs/runtime-benchmarks',59	'xcm-builder/runtime-benchmarks',60]61state-version-0 = []62std = [63	'codec/std',64	'cumulus-pallet-aura-ext/std',65	'cumulus-pallet-parachain-system/std',66	'cumulus-pallet-xcm/std',67	'cumulus-pallet-xcmp-queue/std',68	'cumulus-primitives-core/std',69	'cumulus-primitives-utility/std',70	'frame-executive/std',71	'frame-support/std',72	'frame-system-rpc-runtime-api/std',73	'frame-system/std',74	'frame-try-runtime/std',75	'pallet-aura/std',76	'pallet-balances/std',77	'pallet-collective/std',78	'pallet-democracy/std',79	'pallet-membership/std',80	'pallet-scheduler/std',81	# 'pallet-contracts/std',82	# 'pallet-contracts-primitives/std',83	# 'pallet-contracts-rpc-runtime-api/std',84	# 'pallet-contract-helpers/std',85	"pallet-authorship/std",86	"pallet-identity/std",87	"pallet-preimage/std",88	"pallet-session/std",89	"pallet-state-trie-migration/std",90	"sp-consensus-aura/std",91	'app-promotion-rpc/std',92	'evm-coder/std',93	'fp-rpc/std',94	'fp-self-contained/std',95	'pallet-app-promotion/std',96	'pallet-balances-adapter/std',97	'pallet-base-fee/std',98	'pallet-charge-transaction/std',99	'pallet-collator-selection/std',100	'pallet-common/std',101	'pallet-configuration/std',102	'pallet-ethereum/std',103	'pallet-evm-coder-substrate/std',104	'pallet-evm-contract-helpers/std',105	'pallet-evm-migration/std',106	'pallet-evm-transaction-payment/std',107	'pallet-evm/std',108	'pallet-fungible/std',109	'pallet-inflation/std',110	'pallet-nonfungible/std',111	'pallet-democracy/std',112	'pallet-collective/std',113	'pallet-ranked-collective/std',114	'pallet-membership/std',115	'pallet-referenda/std',116	'pallet-gov-origins/std',117	'pallet-scheduler/std',118	'pallet-refungible/std',119	'pallet-structure/std',120	'pallet-sudo/std',121	'pallet-timestamp/std',122	'pallet-transaction-payment-rpc-runtime-api/std',123	'pallet-transaction-payment/std',124	'pallet-treasury/std',125	'pallet-unique/std',126	'parachain-info/std',127	'sp-api/std',128	'sp-block-builder/std',129	'sp-core/std',130	'sp-inherents/std',131	'sp-io/std',132	'sp-offchain/std',133	'sp-runtime/std',134	'sp-session/std',135	'sp-std/std',136	'sp-transaction-pool/std',137	'sp-version/std',138	'up-common/std',139	'up-data-structs/std',140	'up-pov-estimate-rpc/std',141	'up-rpc/std',142	'up-sponsorship/std',143	'xcm-builder/std',144	'xcm-executor/std',145	'xcm/std',146147	"orml-tokens/std",148	"orml-traits/std",149	"orml-vesting/std",150	"orml-xcm-support/std",151	"orml-xtokens/std",152	"pallet-foreign-assets/std",153	"pallet-maintenance/std",154]155stubgen = ["evm-coder/stubgen"]156try-runtime = [157	"pallet-authorship/try-runtime",158	"pallet-collator-selection/try-runtime",159	"pallet-identity/try-runtime",160	"pallet-preimage/try-runtime",161	"pallet-session/try-runtime",162	"pallet-state-trie-migration/try-runtime",163	'cumulus-pallet-aura-ext/try-runtime',164	'cumulus-pallet-dmp-queue/try-runtime',165	'cumulus-pallet-parachain-system/try-runtime',166	'cumulus-pallet-xcm/try-runtime',167	'cumulus-pallet-xcmp-queue/try-runtime',168	'fp-self-contained/try-runtime',169	'frame-executive/try-runtime',170	'frame-support/try-runtime',171	'frame-system/try-runtime',172	'frame-try-runtime',173	'orml-tokens/try-runtime',174	'orml-vesting/try-runtime',175	'orml-xtokens/try-runtime',176	'pallet-app-promotion/try-runtime',177	'pallet-aura/try-runtime',178	'pallet-balances-adapter/try-runtime',179	'pallet-balances/try-runtime',180	'pallet-charge-transaction/try-runtime',181	'pallet-collective/try-runtime',182	'pallet-common/try-runtime',183	'pallet-configuration/try-runtime',184	'pallet-democracy/try-runtime',185	'pallet-ethereum/try-runtime',186	'pallet-evm-coder-substrate/try-runtime',187	'pallet-evm-contract-helpers/try-runtime',188	'pallet-evm-migration/try-runtime',189	'pallet-evm-transaction-payment/try-runtime',190	'pallet-evm/try-runtime',191	'pallet-foreign-assets/try-runtime',192	'pallet-fungible/try-runtime',193	'pallet-inflation/try-runtime',194	'pallet-maintenance/try-runtime',195	'pallet-membership/try-runtime',196	'pallet-nonfungible/try-runtime',197	'pallet-democracy/try-runtime',198	'pallet-collective/try-runtime',199	'pallet-ranked-collective/try-runtime',200	'pallet-membership/try-runtime',201	'pallet-referenda/try-runtime',202	'pallet-gov-origins/try-runtime',203	'pallet-scheduler/try-runtime',204	'pallet-refungible/try-runtime',205	'pallet-scheduler/try-runtime',206	'pallet-structure/try-runtime',207	'pallet-sudo/try-runtime',208	'pallet-timestamp/try-runtime',209	'pallet-transaction-payment/try-runtime',210	'pallet-treasury/try-runtime',211	'pallet-unique/try-runtime',212	'pallet-xcm/try-runtime',213	'parachain-info/try-runtime',214]215unique-runtime = ['app-promotion', 'foreign-assets', 'refungible']216217app-promotion = []218collator-selection = []219foreign-assets = []220governance = []221preimage = []222refungible = []223unique-scheduler = []224gov-test-timings = []225226################################################################################227# local dependencies228229[dependencies]230# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.231codec = { workspace = true, package = "parity-scale-codec" }232233cumulus-pallet-aura-ext = { workspace = true }234cumulus-pallet-dmp-queue = { workspace = true }235cumulus-pallet-parachain-system = { workspace = true }236cumulus-pallet-xcm = { workspace = true }237cumulus-pallet-xcmp-queue = { workspace = true }238cumulus-primitives-core = { workspace = true }239cumulus-primitives-timestamp = { workspace = true }240cumulus-primitives-utility = { workspace = true }241frame-executive = { workspace = true }242frame-support = { workspace = true }243frame-system = { workspace = true }244frame-system-rpc-runtime-api = { workspace = true }245orml-tokens = { workspace = true }246orml-traits = { workspace = true }247orml-vesting = { workspace = true }248orml-xcm-support = { workspace = true }249orml-xtokens = { workspace = true }250pallet-aura = { workspace = true }251pallet-authorship = { workspace = true }252pallet-balances = { features = ["insecure_zero_ed"], workspace = true }253pallet-preimage = { workspace = true }254pallet-session = { workspace = true }255pallet-state-trie-migration = { workspace = true }256pallet-sudo = { workspace = true }257pallet-timestamp = { workspace = true }258pallet-transaction-payment = { workspace = true }259pallet-transaction-payment-rpc-runtime-api = { workspace = true }260pallet-treasury = { workspace = true }261pallet-xcm = { workspace = true }262parachain-info = { workspace = true }263polkadot-parachain = { workspace = true }264smallvec = { workspace = true }265sp-api = { workspace = true }266sp-arithmetic = { workspace = true }267sp-block-builder = { workspace = true }268sp-consensus-aura = { workspace = true }269sp-core = { workspace = true }270sp-inherents = { workspace = true }271sp-io = { workspace = true }272sp-offchain = { workspace = true }273sp-runtime = { workspace = true }274sp-session = { workspace = true }275sp-std = { workspace = true }276sp-transaction-pool = { workspace = true }277sp-version = { workspace = true }278xcm = { workspace = true }279xcm-builder = { workspace = true }280xcm-executor = { workspace = true }281282app-promotion-rpc = { workspace = true }283derivative = { workspace = true }284log = { workspace = true }285pallet-app-promotion = { workspace = true }286pallet-balances-adapter = { workspace = true }287pallet-collator-selection = { workspace = true }288pallet-common = { workspace = true }289pallet-configuration = { workspace = true }290pallet-fungible = { workspace = true }291pallet-identity = { workspace = true }292pallet-inflation = { workspace = true }293pallet-nonfungible = { workspace = true }294pallet-democracy = { workspace = true }295pallet-collective = { workspace = true }296pallet-ranked-collective = { workspace = true }297pallet-membership = { workspace = true }298pallet-referenda = { workspace = true }299pallet-gov-origins = { workspace = true }300pallet-scheduler = { workspace = true }301pallet-refungible = { workspace = true }302pallet-structure = { workspace = true }303pallet-unique = { workspace = true }304scale-info = { workspace = true }305up-common = { workspace = true }306up-data-structs = { workspace = true }307up-pov-estimate-rpc = { workspace = true }308up-rpc = { workspace = true }309# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }310evm-coder = { workspace = true }311fp-evm = { workspace = true }312fp-rpc = { workspace = true }313fp-self-contained = { workspace = true }314num_enum = { workspace = true }315pallet-base-fee = { workspace = true }316pallet-charge-transaction = { workspace = true }317pallet-ethereum = { workspace = true }318pallet-evm = { workspace = true }319pallet-evm-coder-substrate = { workspace = true }320pallet-evm-contract-helpers = { workspace = true }321pallet-evm-migration = { workspace = true }322pallet-evm-precompile-simple = { workspace = true }323pallet-evm-transaction-payment = { workspace = true }324pallet-foreign-assets = { workspace = true }325pallet-maintenance = { workspace = true }326precompile-utils-macro = { workspace = true }327up-sponsorship = { workspace = true }328329################################################################################330# Optional dependencies331332frame-benchmarking = { workspace = true, optional = true }333frame-system-benchmarking = { workspace = true, optional = true }334frame-try-runtime = { workspace = true, optional = true }335serde = { workspace = true, optional = true }336337################################################################################338# Test dependencies339340pallet-test-utils = { workspace = true }341342################################################################################343# Other Dependencies344345hex-literal = { workspace = true }346impl-trait-for-tuples = { workspace = true }347348[build-dependencies]349substrate-wasm-builder = { workspace = true }
after · runtime/unique/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Unique Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'unique-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version.workspace = true1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'unique-runtime']20limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']21pov-estimate = []22runtime-benchmarks = [23	"pallet-preimage/runtime-benchmarks",24	'frame-benchmarking',25	'frame-support/runtime-benchmarks',26	'frame-system-benchmarking',27	'frame-system/runtime-benchmarks',28	'pallet-app-promotion/runtime-benchmarks',29	'pallet-balances/runtime-benchmarks',30	'pallet-collator-selection/runtime-benchmarks',31	'pallet-collective/runtime-benchmarks',32	'pallet-common/runtime-benchmarks',33	'pallet-configuration/runtime-benchmarks',34	'pallet-democracy/runtime-benchmarks',35	'pallet-ethereum/runtime-benchmarks',36	'pallet-evm-coder-substrate/runtime-benchmarks',37	'pallet-evm-migration/runtime-benchmarks',38	'pallet-foreign-assets/runtime-benchmarks',39	'pallet-fungible/runtime-benchmarks',40	'pallet-identity/runtime-benchmarks',41	'pallet-inflation/runtime-benchmarks',42	'pallet-maintenance/runtime-benchmarks',43	'pallet-membership/runtime-benchmarks',44	'pallet-nonfungible/runtime-benchmarks',45	'pallet-democracy/runtime-benchmarks',46	'pallet-collective/runtime-benchmarks',47	'pallet-ranked-collective/runtime-benchmarks',48	'pallet-membership/runtime-benchmarks',49	'pallet-referenda/runtime-benchmarks',50	'pallet-scheduler/runtime-benchmarks',51	'pallet-refungible/runtime-benchmarks',52	'pallet-scheduler/runtime-benchmarks',53	'pallet-structure/runtime-benchmarks',54	'pallet-timestamp/runtime-benchmarks',55	'pallet-unique/runtime-benchmarks',56	'pallet-xcm/runtime-benchmarks',57	'sp-runtime/runtime-benchmarks',58	'up-data-structs/runtime-benchmarks',59	'xcm-builder/runtime-benchmarks',60]61std = [62	'codec/std',63	'cumulus-pallet-aura-ext/std',64	'cumulus-pallet-parachain-system/std',65	'cumulus-pallet-xcm/std',66	'cumulus-pallet-xcmp-queue/std',67	'cumulus-primitives-core/std',68	'cumulus-primitives-utility/std',69	'frame-executive/std',70	'frame-support/std',71	'frame-system-rpc-runtime-api/std',72	'frame-system/std',73	'frame-try-runtime/std',74	'pallet-aura/std',75	'pallet-balances/std',76	'pallet-collective/std',77	'pallet-democracy/std',78	'pallet-membership/std',79	'pallet-scheduler/std',80	# 'pallet-contracts/std',81	# 'pallet-contracts-primitives/std',82	# 'pallet-contracts-rpc-runtime-api/std',83	# 'pallet-contract-helpers/std',84	"pallet-authorship/std",85	"pallet-identity/std",86	"pallet-preimage/std",87	"pallet-session/std",88	"pallet-state-trie-migration/std",89	"sp-consensus-aura/std",90	'app-promotion-rpc/std',91	'evm-coder/std',92	'fp-rpc/std',93	'fp-self-contained/std',94	'pallet-app-promotion/std',95	'pallet-balances-adapter/std',96	'pallet-base-fee/std',97	'pallet-charge-transaction/std',98	'pallet-collator-selection/std',99	'pallet-common/std',100	'pallet-configuration/std',101	'pallet-ethereum/std',102	'pallet-evm-coder-substrate/std',103	'pallet-evm-contract-helpers/std',104	'pallet-evm-migration/std',105	'pallet-evm-transaction-payment/std',106	'pallet-evm/std',107	'pallet-fungible/std',108	'pallet-inflation/std',109	'pallet-nonfungible/std',110	'pallet-democracy/std',111	'pallet-collective/std',112	'pallet-ranked-collective/std',113	'pallet-membership/std',114	'pallet-referenda/std',115	'pallet-gov-origins/std',116	'pallet-scheduler/std',117	'pallet-refungible/std',118	'pallet-structure/std',119	'pallet-sudo/std',120	'pallet-timestamp/std',121	'pallet-transaction-payment-rpc-runtime-api/std',122	'pallet-transaction-payment/std',123	'pallet-treasury/std',124	'pallet-unique/std',125	'parachain-info/std',126	'sp-api/std',127	'sp-block-builder/std',128	'sp-core/std',129	'sp-inherents/std',130	'sp-io/std',131	'sp-offchain/std',132	'sp-runtime/std',133	'sp-session/std',134	'sp-std/std',135	'sp-transaction-pool/std',136	'sp-version/std',137	'up-common/std',138	'up-data-structs/std',139	'up-pov-estimate-rpc/std',140	'up-rpc/std',141	'up-sponsorship/std',142	'xcm-builder/std',143	'xcm-executor/std',144	'xcm/std',145146	"orml-tokens/std",147	"orml-traits/std",148	"orml-vesting/std",149	"orml-xcm-support/std",150	"orml-xtokens/std",151	"pallet-foreign-assets/std",152	"pallet-maintenance/std",153]154stubgen = ["evm-coder/stubgen"]155try-runtime = [156	"pallet-authorship/try-runtime",157	"pallet-collator-selection/try-runtime",158	"pallet-identity/try-runtime",159	"pallet-preimage/try-runtime",160	"pallet-session/try-runtime",161	"pallet-state-trie-migration/try-runtime",162	'cumulus-pallet-aura-ext/try-runtime',163	'cumulus-pallet-dmp-queue/try-runtime',164	'cumulus-pallet-parachain-system/try-runtime',165	'cumulus-pallet-xcm/try-runtime',166	'cumulus-pallet-xcmp-queue/try-runtime',167	'fp-self-contained/try-runtime',168	'frame-executive/try-runtime',169	'frame-support/try-runtime',170	'frame-system/try-runtime',171	'frame-try-runtime',172	'orml-tokens/try-runtime',173	'orml-vesting/try-runtime',174	'orml-xtokens/try-runtime',175	'pallet-app-promotion/try-runtime',176	'pallet-aura/try-runtime',177	'pallet-balances-adapter/try-runtime',178	'pallet-balances/try-runtime',179	'pallet-charge-transaction/try-runtime',180	'pallet-collective/try-runtime',181	'pallet-common/try-runtime',182	'pallet-configuration/try-runtime',183	'pallet-democracy/try-runtime',184	'pallet-ethereum/try-runtime',185	'pallet-evm-coder-substrate/try-runtime',186	'pallet-evm-contract-helpers/try-runtime',187	'pallet-evm-migration/try-runtime',188	'pallet-evm-transaction-payment/try-runtime',189	'pallet-evm/try-runtime',190	'pallet-foreign-assets/try-runtime',191	'pallet-fungible/try-runtime',192	'pallet-inflation/try-runtime',193	'pallet-maintenance/try-runtime',194	'pallet-membership/try-runtime',195	'pallet-nonfungible/try-runtime',196	'pallet-democracy/try-runtime',197	'pallet-collective/try-runtime',198	'pallet-ranked-collective/try-runtime',199	'pallet-membership/try-runtime',200	'pallet-referenda/try-runtime',201	'pallet-gov-origins/try-runtime',202	'pallet-scheduler/try-runtime',203	'pallet-refungible/try-runtime',204	'pallet-scheduler/try-runtime',205	'pallet-structure/try-runtime',206	'pallet-sudo/try-runtime',207	'pallet-timestamp/try-runtime',208	'pallet-transaction-payment/try-runtime',209	'pallet-treasury/try-runtime',210	'pallet-unique/try-runtime',211	'pallet-xcm/try-runtime',212	'parachain-info/try-runtime',213]214unique-runtime = ['app-promotion', 'foreign-assets', 'refungible']215216app-promotion = []217collator-selection = []218foreign-assets = []219governance = []220preimage = []221refungible = []222unique-scheduler = []223gov-test-timings = []224225################################################################################226# local dependencies227228[dependencies]229# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.230codec = { workspace = true, package = "parity-scale-codec" }231232cumulus-pallet-aura-ext = { workspace = true }233cumulus-pallet-dmp-queue = { workspace = true }234cumulus-pallet-parachain-system = { workspace = true }235cumulus-pallet-xcm = { workspace = true }236cumulus-pallet-xcmp-queue = { workspace = true }237cumulus-primitives-core = { workspace = true }238cumulus-primitives-timestamp = { workspace = true }239cumulus-primitives-utility = { workspace = true }240frame-executive = { workspace = true }241frame-support = { workspace = true }242frame-system = { workspace = true }243frame-system-rpc-runtime-api = { workspace = true }244orml-tokens = { workspace = true }245orml-traits = { workspace = true }246orml-vesting = { workspace = true }247orml-xcm-support = { workspace = true }248orml-xtokens = { workspace = true }249pallet-aura = { workspace = true }250pallet-authorship = { workspace = true }251pallet-balances = { features = ["insecure_zero_ed"], workspace = true }252pallet-preimage = { workspace = true }253pallet-session = { workspace = true }254pallet-state-trie-migration = { workspace = true }255pallet-sudo = { workspace = true }256pallet-timestamp = { workspace = true }257pallet-transaction-payment = { workspace = true }258pallet-transaction-payment-rpc-runtime-api = { workspace = true }259pallet-treasury = { workspace = true }260pallet-xcm = { workspace = true }261parachain-info = { workspace = true }262polkadot-parachain = { workspace = true }263smallvec = { workspace = true }264sp-api = { workspace = true }265sp-arithmetic = { workspace = true }266sp-block-builder = { workspace = true }267sp-consensus-aura = { workspace = true }268sp-core = { workspace = true }269sp-inherents = { workspace = true }270sp-io = { workspace = true }271sp-offchain = { workspace = true }272sp-runtime = { workspace = true }273sp-session = { workspace = true }274sp-std = { workspace = true }275sp-transaction-pool = { workspace = true }276sp-version = { workspace = true }277xcm = { workspace = true }278xcm-builder = { workspace = true }279xcm-executor = { workspace = true }280281app-promotion-rpc = { workspace = true }282derivative = { workspace = true }283log = { workspace = true }284pallet-app-promotion = { workspace = true }285pallet-balances-adapter = { workspace = true }286pallet-collator-selection = { workspace = true }287pallet-common = { workspace = true }288pallet-configuration = { workspace = true }289pallet-fungible = { workspace = true }290pallet-identity = { workspace = true }291pallet-inflation = { workspace = true }292pallet-nonfungible = { workspace = true }293pallet-democracy = { workspace = true }294pallet-collective = { workspace = true }295pallet-ranked-collective = { workspace = true }296pallet-membership = { workspace = true }297pallet-referenda = { workspace = true }298pallet-gov-origins = { workspace = true }299pallet-scheduler = { workspace = true }300pallet-refungible = { workspace = true }301pallet-structure = { workspace = true }302pallet-unique = { workspace = true }303scale-info = { workspace = true }304up-common = { workspace = true }305up-data-structs = { workspace = true }306up-pov-estimate-rpc = { workspace = true }307up-rpc = { workspace = true }308# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }309evm-coder = { workspace = true }310fp-evm = { workspace = true }311fp-rpc = { workspace = true }312fp-self-contained = { workspace = true }313num_enum = { workspace = true }314pallet-base-fee = { workspace = true }315pallet-charge-transaction = { workspace = true }316pallet-ethereum = { workspace = true }317pallet-evm = { workspace = true }318pallet-evm-coder-substrate = { workspace = true }319pallet-evm-contract-helpers = { workspace = true }320pallet-evm-migration = { workspace = true }321pallet-evm-precompile-simple = { workspace = true }322pallet-evm-transaction-payment = { workspace = true }323pallet-foreign-assets = { workspace = true }324pallet-maintenance = { workspace = true }325precompile-utils-macro = { workspace = true }326up-sponsorship = { workspace = true }327328################################################################################329# Optional dependencies330331frame-benchmarking = { workspace = true, optional = true }332frame-system-benchmarking = { workspace = true, optional = true }333frame-try-runtime = { workspace = true, optional = true }334serde = { workspace = true, optional = true }335336################################################################################337# Test dependencies338339pallet-test-utils = { workspace = true }340341################################################################################342# Other Dependencies343344hex-literal = { workspace = true }345impl-trait-for-tuples = { workspace = true }346347[build-dependencies]348substrate-wasm-builder = { workspace = true }
modifiedruntime/unique/src/lib.rsdiffbeforeafterboth
--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -43,22 +43,19 @@
 
 pub use runtime_common::*;
 
-pub const RUNTIME_NAME: &str = "unique";
 pub const TOKEN_SYMBOL: &str = "UNQ";
 pub const DECIMALS: u8 = 18;
 
 /// This runtime version.
+#[sp_version::runtime_version]
 pub const VERSION: RuntimeVersion = RuntimeVersion {
-	spec_name: create_runtime_str!(RUNTIME_NAME),
-	impl_name: create_runtime_str!(RUNTIME_NAME),
+	spec_name: create_runtime_str!("unique"),
+	impl_name: create_runtime_str!("unique"),
 	authoring_version: 1,
 	spec_version: 943060,
 	impl_version: 0,
 	apis: RUNTIME_API_VERSIONS,
 	transaction_version: 3,
-	#[cfg(feature = "state-version-0")]
-	state_version: 0,
-	#[cfg(not(feature = "state-version-0"))]
 	state_version: 1,
 };