git.delta.rocks / unique-network / refs/commits / 8da8a842a17a

difftreelog

Merge pull request #347 from UniqueNetwork/release-v920000

kozyrevdev2022-05-06parents: #b49f8c1 #000df54.patch.diff
in: master
Release v920000

20 files changed

modified.envdiffbeforeafterboth
1RUST_TOOLCHAIN=nightly-2021-11-111RUST_TOOLCHAIN=nightly-2022-04-07
2RUST_C=1.58.0-nightly2RUST_C=1.62.0-nightly
3POLKA_VERSION=release-v0.9.183POLKA_VERSION=release-v0.9.20
4UNIQUE_BRANCH=develop4UNIQUE_BRANCH=develop
5USER=***5USER=***
6PASS=***6PASS=***
modifiedCargo.lockdiffbeforeafterboth
54755475
5476[[package]]5476[[package]]
5477name = "opal-runtime"5477name = "opal-runtime"
5478version = "0.9.18"5478version = "0.9.20"
5479dependencies = [5479dependencies = [
5480 "cumulus-pallet-aura-ext",5480 "cumulus-pallet-aura-ext",
5481 "cumulus-pallet-dmp-queue",5481 "cumulus-pallet-dmp-queue",
86828682
8683[[package]]8683[[package]]
8684name = "quartz-runtime"8684name = "quartz-runtime"
8685version = "0.9.18"8685version = "0.9.20"
8686dependencies = [8686dependencies = [
8687 "cumulus-pallet-aura-ext",8687 "cumulus-pallet-aura-ext",
8688 "cumulus-pallet-dmp-queue",8688 "cumulus-pallet-dmp-queue",
1251512515
12516[[package]]12516[[package]]
12517name = "unique-node"12517name = "unique-node"
12518version = "0.9.18"12518version = "0.9.20"
12519dependencies = [12519dependencies = [
12520 "clap",12520 "clap",
12521 "cumulus-client-cli",12521 "cumulus-client-cli",
1272512725
12726[[package]]12726[[package]]
12727name = "unique-runtime-common"12727name = "unique-runtime-common"
12728version = "0.9.18"12728version = "0.9.20"
12729dependencies = [12729dependencies = [
12730 "fp-rpc",12730 "fp-rpc",
12731 "frame-support",12731 "frame-support",
modifiedDockerfile-parachaindiffbeforeafterboth
2FROM phusion/baseimage:focal-1.1.0 as rust-builder2FROM phusion/baseimage:focal-1.1.0 as rust-builder
3LABEL maintainer="Unique.Network"3LABEL maintainer="Unique.Network"
44
5ARG RUST_TOOLCHAIN=nightly-2021-11-115ARG RUST_TOOLCHAIN=nightly-2022-04-07
6#ARG RUST_C=1.58.0-nightly6#ARG RUST_C=1.62.0-nightly
7ARG POLKA_VERSION=release-v0.9.187ARG POLKA_VERSION=release-v0.9.20
8ARG UNIQUE_BRANCH=develop8ARG UNIQUE_BRANCH=develop
99
10#ARG USER=***10#ARG USER=***
modifiedREADME.mddiffbeforeafterboth
513. Install install nightly 2021-11-11 and make it default:513. Install install nightly 2021-11-11 and make it default:
5252
53```bash53```bash
54rustup toolchain install nightly-2021-11-1154rustup toolchain install nightly-2022-04-07
55rustup default nightly-2021-11-1155rustup default nightly-2022-04-07
56```56```
5757
584. Add wasm target for nightly toolchain:584. Add wasm target for nightly toolchain:
5959
60```bash60```bash
61rustup target add wasm32-unknown-unknown --toolchain nightly-2021-11-1161rustup target add wasm32-unknown-unknown --toolchain nightly-2022-04-07
62```62```
6363
645. Build:645. Build:
81```81```
82git clone https://github.com/paritytech/polkadot.git82git clone https://github.com/paritytech/polkadot.git
83cd polkadot83cd polkadot
84git checkout release-v0.9.1884git checkout release-v0.9.20
85cargo build --release85cargo build --release
86```86```
8787
modifiedlaunch-config-full.jsondiffbeforeafterboth
1{1{
2 "relaychain": {2 "relaychain": {
3 "bin": "../polkadot/target/release/polkadot",3 "bin": "../polkadot/target/release/polkadot",
4 "chain": "rococo-local",4 "chain": "westend-local",
5 "nodes": [5 "nodes": [
6 {6 {
7 "name": "alice",7 "name": "alice",
modifiedlaunch-config.jsondiffbeforeafterboth
1{1{
2 "relaychain": {2 "relaychain": {
3 "bin": "../polkadot/target/release/polkadot",3 "bin": "../polkadot/target/release/polkadot",
4 "chain": "rococo-local",4 "chain": "westend-local",
5 "nodes": [5 "nodes": [
6 {6 {
7 "name": "alice",7 "name": "alice",
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.18'286version = '0.9.20'
287287
288[[bin]]288[[bin]]
289name = 'unique-collator'289name = 'unique-collator'
modifiednode/cli/src/chain_spec.rsdiffbeforeafterboth
243 )243 )
244}244}
245245
246pub fn local_testnet_rococo_config() -> DefaultChainSpec {246pub fn local_testnet_config() -> DefaultChainSpec {
247 let mut properties = Map::new();247 let mut properties = Map::new();
248 properties.insert("tokenSymbol".into(), default_runtime::TOKEN_SYMBOL.into());248 properties.insert("tokenSymbol".into(), default_runtime::TOKEN_SYMBOL.into());
249 properties.insert("tokenDecimals".into(), 18.into());249 properties.insert("tokenDecimals".into(), 18.into());
305 Some(properties),305 Some(properties),
306 // Extensions306 // Extensions
307 Extensions {307 Extensions {
308 relay_chain: "rococo-local".into(),308 relay_chain: "westend-local".into(),
309 para_id: 1000,309 para_id: 1000,
310 },310 },
311 )311 )
modifiednode/cli/src/command.rsdiffbeforeafterboth
76fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {76fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
77 Ok(match id {77 Ok(match id {
78 "dev" => Box::new(chain_spec::development_config()),78 "dev" => Box::new(chain_spec::development_config()),
79 "" | "local" => Box::new(chain_spec::local_testnet_rococo_config()),79 "" | "local" => Box::new(chain_spec::local_testnet_config()),
80 path => {80 path => {
81 let path = std::path::PathBuf::from(path);81 let path = std::path::PathBuf::from(path);
82 let chain_spec = Box::new(chain_spec::OpalChainSpec::from_json_file(path.clone())?)82 let chain_spec = Box::new(chain_spec::OpalChainSpec::from_json_file(path.clone())?)
405405
406 cmd.run(config, partials.client.clone(), db, storage)406 cmd.run(config, partials.client.clone(), db, storage)
407 }),407 }),
408 BenchmarkCmd::Machine(cmd) => runner.sync_run(|config| cmd.run(&config)),
408 BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),409 BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
409 }410 }
410 }411 }
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.9.18'9version = '0.9.20'
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.9.18'13version = '0.9.20'
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/build.rsdiffbeforeafterboth
14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License
15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
16
17use substrate_wasm_builder::WasmBuilder;
1816
19fn main() {17fn main() {
18 #[cfg(feature = "std")]
20 WasmBuilder::new()19 substrate_wasm_builder::WasmBuilder::new()
21 .with_current_project()20 .with_current_project()
22 .import_memory()21 .import_memory()
23 .export_heap_base()22 .export_heap_base()
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
169 spec_name: create_runtime_str!(RUNTIME_NAME),169 spec_name: create_runtime_str!(RUNTIME_NAME),
170 impl_name: create_runtime_str!(RUNTIME_NAME),170 impl_name: create_runtime_str!(RUNTIME_NAME),
171 authoring_version: 1,171 authoring_version: 1,
172 spec_version: 918010,172 spec_version: 920000,
173 impl_version: 0,173 impl_version: 0,
174 apis: RUNTIME_API_VERSIONS,174 apis: RUNTIME_API_VERSIONS,
175 transaction_version: 1,175 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.9.18'13version = '0.9.20'
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/build.rsdiffbeforeafterboth
1use substrate_wasm_builder::WasmBuilder;
2
3fn main() {1fn main() {
2 #[cfg(feature = "std")]
4 WasmBuilder::new()3 substrate_wasm_builder::WasmBuilder::new()
5 .with_current_project()4 .with_current_project()
6 .import_memory()5 .import_memory()
7 .export_heap_base()6 .export_heap_base()
modifiedruntime/quartz/src/lib.rsdiffbeforeafterboth
154 spec_name: create_runtime_str!(RUNTIME_NAME),154 spec_name: create_runtime_str!(RUNTIME_NAME),
155 impl_name: create_runtime_str!(RUNTIME_NAME),155 impl_name: create_runtime_str!(RUNTIME_NAME),
156 authoring_version: 1,156 authoring_version: 1,
157 spec_version: 918010,157 spec_version: 920000,
158 impl_version: 0,158 impl_version: 0,
159 apis: RUNTIME_API_VERSIONS,159 apis: RUNTIME_API_VERSIONS,
160 transaction_version: 1,160 transaction_version: 1,
modifiedruntime/unique/build.rsdiffbeforeafterboth
1use substrate_wasm_builder::WasmBuilder;
2
3fn main() {1fn main() {
2 #[cfg(feature = "std")]
4 WasmBuilder::new()3 substrate_wasm_builder::WasmBuilder::new()
5 .with_current_project()4 .with_current_project()
6 .import_memory()5 .import_memory()
7 .export_heap_base()6 .export_heap_base()
modifiedruntime/unique/src/lib.rsdiffbeforeafterboth
153 spec_name: create_runtime_str!(RUNTIME_NAME),153 spec_name: create_runtime_str!(RUNTIME_NAME),
154 impl_name: create_runtime_str!(RUNTIME_NAME),154 impl_name: create_runtime_str!(RUNTIME_NAME),
155 authoring_version: 1,155 authoring_version: 1,
156 spec_version: 918010,156 spec_version: 920000,
157 impl_version: 0,157 impl_version: 0,
158 apis: RUNTIME_API_VERSIONS,158 apis: RUNTIME_API_VERSIONS,
159 transaction_version: 1,159 transaction_version: 1,
modifiedtests/README.mddiffbeforeafterboth
51. Checkout polkadot in sibling folder with this project51. Checkout polkadot in sibling folder with this project
6```bash6```bash
7git clone https://github.com/paritytech/polkadot.git && cd polkadot7git clone https://github.com/paritytech/polkadot.git && cd polkadot
8git checkout release-v0.9.188git checkout release-v0.9.20
9```9```
1010
112. Build with nightly-2021-11-11112. Build with nightly-2021-11-11
modifiedtests/src/interfaces/augment-api-query.tsdiffbeforeafterboth
129 * The current transaction statuses.129 * The current transaction statuses.
130 **/130 **/
131 currentTransactionStatuses: AugmentedQuery<ApiType, () => Observable<Option<Vec<FpRpcTransactionStatus>>>, []> & QueryableStorageEntry<ApiType, []>;131 currentTransactionStatuses: AugmentedQuery<ApiType, () => Observable<Option<Vec<FpRpcTransactionStatus>>>, []> & QueryableStorageEntry<ApiType, []>;
132 /**
133 * Injected transactions should have unique nonce, here we store current
134 **/
135 injectedNonce: AugmentedQuery<ApiType, () => Observable<U256>, []> & QueryableStorageEntry<ApiType, []>;
132 /**136 /**
133 * Current building block's transactions and receipts.137 * Current building block's transactions and receipts.
134 **/138 **/
431 * The number of events in the `Events<T>` list.435 * The number of events in the `Events<T>` list.
432 **/436 **/
433 eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;437 eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
434 /**438 /**
435 * Events deposited for the current block.439 * Events deposited for the current block.
436 * 440 *
437 * NOTE: This storage item is explicitly unbounded since it is never intended to be read441 * NOTE: The item is unbound and should therefore never be read on chain.
438 * from within the runtime.442 * It could otherwise inflate the PoV size of a block.
439 **/443 *
444 * Events have a large in-memory size. Box the events to not go out-of-memory
445 * just in case someone still reads them from within the runtime.
446 **/
440 events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;447 events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
441 /**448 /**
442 * Mapping between a topic (represented by T::Hash) and a vector of indexes449 * Mapping between a topic (represented by T::Hash) and a vector of indexes