difftreelog
Merge pull request #347 from UniqueNetwork/release-v920000
in: master
Release v920000
20 files changed
.envdiffbeforeafterboth1RUST_TOOLCHAIN=nightly-2021-11-111RUST_TOOLCHAIN=nightly-2022-04-072RUST_C=1.58.0-nightly2RUST_C=1.62.0-nightly3POLKA_VERSION=release-v0.9.183POLKA_VERSION=release-v0.9.204UNIQUE_BRANCH=develop4UNIQUE_BRANCH=develop5USER=***5USER=***6PASS=***6PASS=***Cargo.lockdiffbeforeafterboth547554755476[[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",868286828683[[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",125151251512516[[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",127251272512726[[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",Dockerfile-parachaindiffbeforeafterboth2FROM phusion/baseimage:focal-1.1.0 as rust-builder2FROM phusion/baseimage:focal-1.1.0 as rust-builder3LABEL maintainer="Unique.Network"3LABEL maintainer="Unique.Network"445ARG RUST_TOOLCHAIN=nightly-2021-11-115ARG RUST_TOOLCHAIN=nightly-2022-04-076#ARG RUST_C=1.58.0-nightly6#ARG RUST_C=1.62.0-nightly7ARG POLKA_VERSION=release-v0.9.187ARG POLKA_VERSION=release-v0.9.208ARG UNIQUE_BRANCH=develop8ARG UNIQUE_BRANCH=develop9910#ARG USER=***10#ARG USER=***README.mddiffbeforeafterboth513. Install install nightly 2021-11-11 and make it default:513. Install install nightly 2021-11-11 and make it default:525253```bash53```bash54rustup toolchain install nightly-2021-11-1154rustup toolchain install nightly-2022-04-0755rustup default nightly-2021-11-1155rustup default nightly-2022-04-0756```56```5757584. Add wasm target for nightly toolchain:584. Add wasm target for nightly toolchain:595960```bash60```bash61rustup target add wasm32-unknown-unknown --toolchain nightly-2021-11-1161rustup target add wasm32-unknown-unknown --toolchain nightly-2022-04-0762```62```6363645. Build:645. Build:81```81```82git clone https://github.com/paritytech/polkadot.git82git clone https://github.com/paritytech/polkadot.git83cd polkadot83cd polkadot84git checkout release-v0.9.1884git checkout release-v0.9.2085cargo build --release85cargo build --release86```86```8787launch-config-full.jsondiffbeforeafterboth1{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",launch-config.jsondiffbeforeafterboth1{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",node/cli/Cargo.tomldiffbeforeafterboth283license = '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'287287288[[bin]]288[[bin]]289name = 'unique-collator'289name = 'unique-collator'node/cli/src/chain_spec.rsdiffbeforeafterboth243 )243 )244}244}245245246pub 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 // Extensions307 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 )node/cli/src/command.rsdiffbeforeafterboth76fn 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())?)405405406 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 }runtime/common/Cargo.tomldiffbeforeafterboth6license = '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'101011[features]11[features]12default = ['std']12default = ['std']runtime/opal/Cargo.tomldiffbeforeafterboth10license = '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'141415[package.metadata.docs.rs]15[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']16targets = ['x86_64-unknown-linux-gnu']runtime/opal/build.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// 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/>.1617use substrate_wasm_builder::WasmBuilder;181619fn 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()runtime/opal/src/lib.rsdiffbeforeafterboth169 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,runtime/quartz/Cargo.tomldiffbeforeafterboth10license = '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'141415[package.metadata.docs.rs]15[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']16targets = ['x86_64-unknown-linux-gnu']runtime/quartz/build.rsdiffbeforeafterboth1use substrate_wasm_builder::WasmBuilder;23fn 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()runtime/quartz/src/lib.rsdiffbeforeafterboth154 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,runtime/unique/build.rsdiffbeforeafterboth1use substrate_wasm_builder::WasmBuilder;23fn 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()runtime/unique/src/lib.rsdiffbeforeafterboth153 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,tests/README.mddiffbeforeafterboth51. Checkout polkadot in sibling folder with this project51. Checkout polkadot in sibling folder with this project6```bash6```bash7git clone https://github.com/paritytech/polkadot.git && cd polkadot7git clone https://github.com/paritytech/polkadot.git && cd polkadot8git checkout release-v0.9.188git checkout release-v0.9.209```9```1010112. Build with nightly-2021-11-11112. Build with nightly-2021-11-11tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth129 * 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 current134 **/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-memory445 * 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