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
108runtime-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']108runtime-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']
109sapphire-runtime = ['quartz-runtime', 'quartz-runtime/become-sapphire']109sapphire-runtime = ['quartz-runtime', 'quartz-runtime/become-sapphire']
110try-runtime = ['opal-runtime?/try-runtime', 'quartz-runtime?/try-runtime', 'try-runtime-cli/try-runtime', 'unique-runtime?/try-runtime']110try-runtime = ['opal-runtime?/try-runtime', 'quartz-runtime?/try-runtime', 'try-runtime-cli/try-runtime', 'unique-runtime?/try-runtime']
111state-version-0 = ['opal-runtime?/state-version-0', 'quartz-runtime?/state-version-0', 'unique-runtime?/state-version-0']
112111
modifiednode/cli/src/chain_spec.rsdiffbeforeafterboth
281 // Name281 // Name
282 format!(282 format!(
283 "{}{}",283 "{}{}",
284 default_runtime::RUNTIME_NAME.to_uppercase(),284 default_runtime::VERSION.spec_name.to_uppercase(),
285 if cfg!(feature = "unique-runtime") {285 if cfg!(feature = "unique-runtime") {
286 ""286 ""
287 } else {287 } else {
290 )290 )
291 .as_str(),291 .as_str(),
292 // ID292 // ID
293 format!("{}_dev", default_runtime::RUNTIME_NAME).as_str(),293 format!("{}_dev", default_runtime::VERSION.spec_name).as_str(),
294 ChainType::Local,294 ChainType::Local,
295 move || {295 move || {
296 testnet_genesis!(296 testnet_genesis!(
355 // Name355 // Name
356 format!(356 format!(
357 "{}{}",357 "{}{}",
358 default_runtime::RUNTIME_NAME.to_uppercase(),358 default_runtime::VERSION.impl_name.to_uppercase(),
359 if cfg!(feature = "unique-runtime") {359 if cfg!(feature = "unique-runtime") {
360 ""360 ""
361 } else {361 } else {
364 )364 )
365 .as_str(),365 .as_str(),
366 // ID366 // ID
367 format!("{}_local", default_runtime::RUNTIME_NAME).as_str(),367 format!("{}_local", default_runtime::VERSION.spec_name).as_str(),
368 ChainType::Local,368 ChainType::Local,
369 move || {369 move || {
370 testnet_genesis!(370 testnet_genesis!(
modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
24 weights::CommonWeights,24 weights::CommonWeights,
25 RelayChainBlockNumberProvider,25 RelayChainBlockNumberProvider,
26 },26 },
27 Runtime, RuntimeEvent, RuntimeCall, RUNTIME_NAME, TOKEN_SYMBOL, DECIMALS, Balances,27 Runtime, RuntimeEvent, RuntimeCall, VERSION, TOKEN_SYMBOL, DECIMALS, Balances,
28};28};
29use frame_support::traits::{ConstU32, ConstU64, Currency};29use frame_support::traits::{ConstU32, ConstU64, Currency};
30use up_common::{30use up_common::{
9090
91parameter_types! {91parameter_types! {
92 pub const Decimals: u8 = DECIMALS;92 pub const Decimals: u8 = DECIMALS;
93 pub Name: String = RUNTIME_NAME.to_string();93 pub Name: String = String::from_utf8_lossy(VERSION.impl_name.as_ref()).to_string();
94 pub Symbol: String = TOKEN_SYMBOL.to_string();94 pub Symbol: String = TOKEN_SYMBOL.to_string();
95}95}
96impl pallet_balances_adapter::Config for Runtime {96impl pallet_balances_adapter::Config for Runtime {
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
64 'sp-runtime/runtime-benchmarks',64 'sp-runtime/runtime-benchmarks',
65 'xcm-builder/runtime-benchmarks',65 'xcm-builder/runtime-benchmarks',
66]66]
67state-version-0 = []
68std = [67std = [
69 'codec/std',68 'codec/std',
70 'cumulus-pallet-aura-ext/std',69 'cumulus-pallet-aura-ext/std',
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
4343
44pub use runtime_common::*;44pub use runtime_common::*;
4545
46pub const RUNTIME_NAME: &str = "opal";
47pub const TOKEN_SYMBOL: &str = "OPL";46pub const TOKEN_SYMBOL: &str = "OPL";
48pub const DECIMALS: u8 = 18;47pub const DECIMALS: u8 = 18;
4948
50/// This runtime version.49/// This runtime version.
50#[sp_version::runtime_version]
51pub const VERSION: RuntimeVersion = RuntimeVersion {51pub const VERSION: RuntimeVersion = RuntimeVersion {
52 spec_name: create_runtime_str!(RUNTIME_NAME),52 spec_name: create_runtime_str!("opal"),
53 impl_name: create_runtime_str!(RUNTIME_NAME),53 impl_name: create_runtime_str!("opal"),
54 authoring_version: 1,54 authoring_version: 1,
55 spec_version: 943060,55 spec_version: 943060,
56 impl_version: 0,56 impl_version: 0,
57 apis: RUNTIME_API_VERSIONS,57 apis: RUNTIME_API_VERSIONS,
58 transaction_version: 3,58 transaction_version: 3,
59 #[cfg(feature = "state-version-0")]
60 state_version: 0,
61 #[cfg(not(feature = "state-version-0"))]
62 state_version: 1,59 state_version: 1,
63};60};
6461
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
60 'sp-runtime/runtime-benchmarks',60 'sp-runtime/runtime-benchmarks',
61 'xcm-builder/runtime-benchmarks',61 'xcm-builder/runtime-benchmarks',
62]62]
63state-version-0 = []
64std = [63std = [
65 'codec/std',64 'codec/std',
66 'cumulus-pallet-aura-ext/std',65 'cumulus-pallet-aura-ext/std',
modifiedruntime/quartz/src/lib.rsdiffbeforeafterboth
4343
44pub use runtime_common::*;44pub use runtime_common::*;
4545
46#[cfg(feature = "become-sapphire")]
47pub const RUNTIME_NAME: &str = "sapphire";
48#[cfg(not(feature = "become-sapphire"))]
49pub const RUNTIME_NAME: &str = "quartz";
50pub const TOKEN_SYMBOL: &str = "QTZ";46pub const TOKEN_SYMBOL: &str = "QTZ";
51pub const DECIMALS: u8 = 18;47pub const DECIMALS: u8 = 18;
5248
53/// This runtime version.49/// This runtime version.
50#[cfg(not(feature = "become-sapphire"))]
51#[sp_version::runtime_version]
54pub const VERSION: RuntimeVersion = RuntimeVersion {52pub const VERSION: RuntimeVersion = RuntimeVersion {
55 spec_name: create_runtime_str!(RUNTIME_NAME),53 spec_name: create_runtime_str!("quartz"),
56 impl_name: create_runtime_str!(RUNTIME_NAME),54 impl_name: create_runtime_str!("quartz"),
55
57 authoring_version: 1,56 authoring_version: 1,
58 spec_version: 943060,57 spec_version: 943060,
59 impl_version: 0,58 impl_version: 0,
60 apis: RUNTIME_API_VERSIONS,59 apis: RUNTIME_API_VERSIONS,
61 transaction_version: 3,60 transaction_version: 3,
62 #[cfg(feature = "state-version-0")]
63 state_version: 0,
64 #[cfg(not(feature = "state-version-0"))]
65 state_version: 1,61 state_version: 1,
66};62};
63#[cfg(feature = "become-sapphire")]
64#[sp_version::runtime_version]
65pub const VERSION: RuntimeVersion = RuntimeVersion {
66 spec_name: create_runtime_str!("sapphire"),
67 impl_name: create_runtime_str!("sapphire"),
68
69 authoring_version: 1,
70 spec_version: 943060,
71 impl_version: 0,
72 apis: RUNTIME_API_VERSIONS,
73 transaction_version: 3,
74 state_version: 1,
75};
6776
68parameter_types! {77parameter_types! {
69 pub const Version: RuntimeVersion = VERSION;78 pub const Version: RuntimeVersion = VERSION;
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
58 'up-data-structs/runtime-benchmarks',58 'up-data-structs/runtime-benchmarks',
59 'xcm-builder/runtime-benchmarks',59 'xcm-builder/runtime-benchmarks',
60]60]
61state-version-0 = []
62std = [61std = [
63 'codec/std',62 'codec/std',
64 'cumulus-pallet-aura-ext/std',63 'cumulus-pallet-aura-ext/std',
modifiedruntime/unique/src/lib.rsdiffbeforeafterboth
4343
44pub use runtime_common::*;44pub use runtime_common::*;
4545
46pub const RUNTIME_NAME: &str = "unique";
47pub const TOKEN_SYMBOL: &str = "UNQ";46pub const TOKEN_SYMBOL: &str = "UNQ";
48pub const DECIMALS: u8 = 18;47pub const DECIMALS: u8 = 18;
4948
50/// This runtime version.49/// This runtime version.
50#[sp_version::runtime_version]
51pub const VERSION: RuntimeVersion = RuntimeVersion {51pub const VERSION: RuntimeVersion = RuntimeVersion {
52 spec_name: create_runtime_str!(RUNTIME_NAME),52 spec_name: create_runtime_str!("unique"),
53 impl_name: create_runtime_str!(RUNTIME_NAME),53 impl_name: create_runtime_str!("unique"),
54 authoring_version: 1,54 authoring_version: 1,
55 spec_version: 943060,55 spec_version: 943060,
56 impl_version: 0,56 impl_version: 0,
57 apis: RUNTIME_API_VERSIONS,57 apis: RUNTIME_API_VERSIONS,
58 transaction_version: 3,58 transaction_version: 3,
59 #[cfg(feature = "state-version-0")]
60 state_version: 0,
61 #[cfg(not(feature = "state-version-0"))]
62 state_version: 1,59 state_version: 1,
63};60};
6461