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

difftreelog

Merge pull request #322 from UniqueNetwork/release/opal-v918000

kozyrevdev2022-03-29parents: #80d5011 #c21a15c.patch.diff
in: master
Release v918000

12 files changed

modified.envdiffbeforeafterboth
1RUST_TOOLCHAIN=nightly-2021-11-111RUST_TOOLCHAIN=nightly-2021-11-11
2RUST_C=1.58.0-nightly2RUST_C=1.58.0-nightly
3POLKA_VERSION=release-v0.9.173POLKA_VERSION=release-v0.9.18
4UNIQUE_BRANCH=develop4UNIQUE_BRANCH=develop
5USER=***5USER=***
6PASS=***6PASS=***
modifiedCargo.lockdiffbeforeafterboth
55655565
5566[[package]]5566[[package]]
5567name = "opal-runtime"5567name = "opal-runtime"
5568version = "0.1.0"5568version = "0.9.18"
5569dependencies = [5569dependencies = [
5570 "cumulus-pallet-aura-ext",5570 "cumulus-pallet-aura-ext",
5571 "cumulus-pallet-dmp-queue",5571 "cumulus-pallet-dmp-queue",
86938693
8694[[package]]8694[[package]]
8695name = "quartz-runtime"8695name = "quartz-runtime"
8696version = "0.1.0"8696version = "0.9.18"
8697dependencies = [8697dependencies = [
8698 "cumulus-pallet-aura-ext",8698 "cumulus-pallet-aura-ext",
8699 "cumulus-pallet-dmp-queue",8699 "cumulus-pallet-dmp-queue",
1240212402
12403[[package]]12403[[package]]
12404name = "unique-node"12404name = "unique-node"
12405version = "0.9.17"12405version = "0.9.18"
12406dependencies = [12406dependencies = [
12407 "clap",12407 "clap",
12408 "cumulus-client-cli",12408 "cumulus-client-cli",
1253412534
12535[[package]]12535[[package]]
12536name = "unique-runtime"12536name = "unique-runtime"
12537version = "0.9.17"12537version = "0.9.18"
12538dependencies = [12538dependencies = [
12539 "cumulus-pallet-aura-ext",12539 "cumulus-pallet-aura-ext",
12540 "cumulus-pallet-dmp-queue",12540 "cumulus-pallet-dmp-queue",
1261012610
12611[[package]]12611[[package]]
12612name = "unique-runtime-common"12612name = "unique-runtime-common"
12613version = "0.1.0"12613version = "0.9.18"
12614dependencies = [12614dependencies = [
12615 "fp-rpc",12615 "fp-rpc",
12616 "frame-support",12616 "frame-support",
modifiedREADME.mddiffbeforeafterboth
6363
645. Build:645. Build:
65```bash65```bash
66cargo build66cargo build --features=unique-runtime,quartz-runtime --release
67```67```
6868
69optionally, build in release:
70```bash
71cargo build --release
72```
73
74## Building as Parachain locally69## Building as Parachain locally
7570
76Note: checkout this project and all related projects (see below) in the sibling folders (both under the same folder)71Note: checkout this project and all related projects (see below) in the sibling folders (both under the same folder)
modifiednode/cli/Cargo.tomldiffbeforeafterboth
283license = 'GPLv3'283license = 'GPLv3'
284name = 'unique-node'284name = 'unique-node'
285repository = 'https://github.com/UniqueNetwork/unique-chain'285repository = 'https://github.com/UniqueNetwork/unique-chain'
286version = '0.9.17'286version = '0.9.18'
287287
288[[bin]]288[[bin]]
289name = 'unique-collator'289name = 'unique-collator'
312unique-rpc = { default-features = false, path = "../rpc" }312unique-rpc = { default-features = false, path = "../rpc" }
313313
314[features]314[features]
315default = ["unique-runtime", "quartz-runtime"]315default = []
316runtime-benchmarks = [316runtime-benchmarks = [
317 'unique-runtime/runtime-benchmarks',317 'unique-runtime/runtime-benchmarks',
318 'polkadot-service/runtime-benchmarks',318 'polkadot-service/runtime-benchmarks',
modifiednode/cli/src/chain_spec.rsdiffbeforeafterboth
128pub fn development_config() -> OpalChainSpec {128pub fn development_config() -> OpalChainSpec {
129 let mut properties = Map::new();129 let mut properties = Map::new();
130 properties.insert("tokenSymbol".into(), "OPL".into());130 properties.insert("tokenSymbol".into(), "OPL".into());
131 properties.insert("tokenDecimals".into(), 15.into());131 properties.insert("tokenDecimals".into(), 18.into());
132 properties.insert("ss58Format".into(), 42.into());132 properties.insert("ss58Format".into(), 42.into());
133133
134 OpalChainSpec::from_genesis(134 OpalChainSpec::from_genesis(
135 // Name135 // Name
136 "Development",136 "OPAL by UNIQUE",
137 // ID137 // ID
138 "dev",138 "opal_dev",
139 ChainType::Local,139 ChainType::Local,
140 move || {140 move || {
141 testnet_genesis(141 testnet_genesis(
171}171}
172172
173pub fn local_testnet_rococo_config() -> OpalChainSpec {173pub fn local_testnet_rococo_config() -> OpalChainSpec {
174 let mut properties = Map::new();
175 properties.insert("tokenSymbol".into(), "OPL".into());
176 properties.insert("tokenDecimals".into(), 18.into());
177 properties.insert("ss58Format".into(), 42.into());
178
174 OpalChainSpec::from_genesis(179 OpalChainSpec::from_genesis(
175 // Name180 // Name
176 "Local Testnet",181 "OPAL by UNIQUE",
177 // ID182 // ID
178 "local_testnet",183 "opal_local",
179 ChainType::Local,184 ChainType::Local,
180 move || {185 move || {
181 testnet_genesis(186 testnet_genesis(
211 None,216 None,
212 None,217 None,
213 // Properties218 // Properties
214 None,219 Some(properties),
215 // Extensions220 // Extensions
216 Extensions {221 Extensions {
217 relay_chain: "rococo-local".into(),222 relay_chain: "rococo-local".into(),
modifiedruntime/common/Cargo.tomldiffbeforeafterboth
6license = 'All Rights Reserved'6license = 'All Rights Reserved'
7name = 'unique-runtime-common'7name = 'unique-runtime-common'
8repository = 'https://github.com/UniqueNetwork/unique-chain'8repository = 'https://github.com/UniqueNetwork/unique-chain'
9version = '0.1.0'9version = '0.9.18'
1010
11[features]11[features]
12default = ['std']12default = ['std']
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
10license = 'GPLv3'10license = 'GPLv3'
11name = 'opal-runtime'11name = 'opal-runtime'
12repository = 'https://github.com/UniqueNetwork/unique-chain'12repository = 'https://github.com/UniqueNetwork/unique-chain'
13version = '0.1.0'13version = '0.9.18'
1414
15[package.metadata.docs.rs]15[package.metadata.docs.rs]
16targets = ['x86_64-unknown-linux-gnu']16targets = ['x86_64-unknown-linux-gnu']
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
114114
115use unique_runtime_common::{impl_common_runtime_apis, types::*, constants::*};115use unique_runtime_common::{impl_common_runtime_apis, types::*, constants::*};
116116
117pub const RUNTIME_NAME: &str = "Opal";117pub const RUNTIME_NAME: &str = "opal";
118118
119type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;119type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;
120120
151 spec_name: create_runtime_str!(RUNTIME_NAME),151 spec_name: create_runtime_str!(RUNTIME_NAME),
152 impl_name: create_runtime_str!(RUNTIME_NAME),152 impl_name: create_runtime_str!(RUNTIME_NAME),
153 authoring_version: 1,153 authoring_version: 1,
154 spec_version: 917004,154 spec_version: 918000,
155 impl_version: 0,155 impl_version: 0,
156 apis: RUNTIME_API_VERSIONS,156 apis: RUNTIME_API_VERSIONS,
157 transaction_version: 1,157 transaction_version: 1,
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
10license = 'GPLv3'10license = 'GPLv3'
11name = 'quartz-runtime'11name = 'quartz-runtime'
12repository = 'https://github.com/UniqueNetwork/unique-chain'12repository = 'https://github.com/UniqueNetwork/unique-chain'
13version = '0.1.0'13version = '0.9.18'
1414
15[package.metadata.docs.rs]15[package.metadata.docs.rs]
16targets = ['x86_64-unknown-linux-gnu']16targets = ['x86_64-unknown-linux-gnu']
modifiedruntime/quartz/src/lib.rsdiffbeforeafterboth
114114
115use unique_runtime_common::{impl_common_runtime_apis, types::*, constants::*};115use unique_runtime_common::{impl_common_runtime_apis, types::*, constants::*};
116116
117pub const RUNTIME_NAME: &str = "Quartz";117pub const RUNTIME_NAME: &str = "quartz";
118118
119type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;119type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;
120120
151 spec_name: create_runtime_str!(RUNTIME_NAME),151 spec_name: create_runtime_str!(RUNTIME_NAME),
152 impl_name: create_runtime_str!(RUNTIME_NAME),152 impl_name: create_runtime_str!(RUNTIME_NAME),
153 authoring_version: 1,153 authoring_version: 1,
154 spec_version: 917004,154 spec_version: 918000,
155 impl_version: 0,155 impl_version: 0,
156 apis: RUNTIME_API_VERSIONS,156 apis: RUNTIME_API_VERSIONS,
157 transaction_version: 1,157 transaction_version: 1,
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
10license = 'GPLv3'10license = 'GPLv3'
11name = 'unique-runtime'11name = 'unique-runtime'
12repository = 'https://github.com/UniqueNetwork/unique-chain'12repository = 'https://github.com/UniqueNetwork/unique-chain'
13version = '0.9.17'13version = '0.9.18'
1414
15[package.metadata.docs.rs]15[package.metadata.docs.rs]
16targets = ['x86_64-unknown-linux-gnu']16targets = ['x86_64-unknown-linux-gnu']
modifiedruntime/unique/src/lib.rsdiffbeforeafterboth
113113
114use unique_runtime_common::{impl_common_runtime_apis, types::*, constants::*};114use unique_runtime_common::{impl_common_runtime_apis, types::*, constants::*};
115115
116pub const RUNTIME_NAME: &str = "Unique";116pub const RUNTIME_NAME: &str = "unique";
117117
118type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;118type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;
119119
150 spec_name: create_runtime_str!(RUNTIME_NAME),150 spec_name: create_runtime_str!(RUNTIME_NAME),
151 impl_name: create_runtime_str!(RUNTIME_NAME),151 impl_name: create_runtime_str!(RUNTIME_NAME),
152 authoring_version: 1,152 authoring_version: 1,
153 spec_version: 917004,153 spec_version: 918000,
154 impl_version: 0,154 impl_version: 0,
155 apis: RUNTIME_API_VERSIONS,155 apis: RUNTIME_API_VERSIONS,
156 transaction_version: 1,156 transaction_version: 1,