difftreelog
update version to v0.9.24 polkadot
in: master
13 files changed
.envdiffbeforeafterboth--- a/.env
+++ b/.env
@@ -1,6 +1,6 @@
RUST_TOOLCHAIN=nightly-2022-05-11
RUST_C=1.62.0-nightly
-POLKA_VERSION=release-v0.9.23
+POLKA_VERSION=release-v0.9.24
UNIQUE_BRANCH=develop
USER=***
PASS=***
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5289,7 +5289,7 @@
[[package]]
name = "opal-runtime"
-version = "0.9.23"
+version = "0.9.24"
dependencies = [
"cumulus-pallet-aura-ext",
"cumulus-pallet-dmp-queue",
@@ -8598,7 +8598,7 @@
[[package]]
name = "quartz-runtime"
-version = "0.9.23"
+version = "0.9.24"
dependencies = [
"cumulus-pallet-aura-ext",
"cumulus-pallet-dmp-queue",
@@ -12460,7 +12460,7 @@
[[package]]
name = "unique-node"
-version = "0.9.23"
+version = "0.9.24"
dependencies = [
"clap",
"cumulus-client-cli",
@@ -12597,7 +12597,7 @@
[[package]]
name = "unique-runtime"
-version = "0.9.23"
+version = "0.9.24"
dependencies = [
"cumulus-pallet-aura-ext",
"cumulus-pallet-dmp-queue",
@@ -12679,7 +12679,7 @@
[[package]]
name = "unique-runtime-common"
-version = "0.9.23"
+version = "0.9.24"
dependencies = [
"evm-coder",
"fp-rpc",
Dockerfile-parachaindiffbeforeafterboth--- a/Dockerfile-parachain
+++ b/Dockerfile-parachain
@@ -2,9 +2,9 @@
FROM phusion/baseimage:focal-1.1.0 as rust-builder
LABEL maintainer="Unique.Network"
-ARG RUST_TOOLCHAIN=nightly-2022-04-07
+ARG RUST_TOOLCHAIN=nightly-2022-05-11
#ARG RUST_C=1.62.0-nightly
-ARG POLKA_VERSION=release-v0.9.23
+ARG POLKA_VERSION=release-v0.9.24
ARG UNIQUE_BRANCH=develop
#ARG USER=***
README.mddiffbeforeafterboth123# Unique Parachain45## Project Description67The Unique Pallet is the core of NFT functionality. Like ERC-721 standard in Ethereum ecosystem, this pallet provides the8basement for creating collections of unique non-divisible things, also called Non Fungible Tokens (NFTs), minting NFT of9a given Collection, and managing their ownership.1011The pallet also enables storing NFT properties. Though (according to ERC-721) NFT properties belong to logic of a12concrete application that operates a Collection, so purposefully the NFT Tracking Module does not have any knowledge13about properties except their byte size leaving application logic out to be controlled by Smart Contracts.1415The Unique Chain also provides:1617- Smart Contracts Pallet and example smart contract that interacts with Unique Runtime18- ERC-1155 Functionality (currently PoC as Re-Fungible tokens, i.e. items that are still unique, but that can be split19 between multiple users)20- Variety of economic options for dapp producers to choose from to create freemium games and other ways to attract21 users. As a step one, we implemented an economic model when a collection sponsor can be set to pay for collection22 Transfer transactions.2324Wider Unique Ecosystem (most of it was developed during Hackusama):2526- [SubstraPunks Game hosted on IPFS](https://github.com/usetech-llc/substrapunks)27- [Unique Wallet and UI](https://uniqueapps.usetech.com/#/nft)28- [NFT Asset for Unity Framework](https://github.com/usetech-llc/nft_unity)2930Please see our [walk-through instructions](doc/hackusama_walk_through.md) to try everything out!3132## Application Development3334If you are building an application that operates NFT tokens, use [this document](doc/application_development.md).353637## Building3839Building Unique chain requires special versions of Rust and toolchain. We don't use the most recent versions of everything40so that we can keep the builds stable.41421. Install Rust:4344```bash45sudo apt-get install git curl libssl-dev llvm pkg-config libclang-dev clang make46curl https://sh.rustup.rs -sSf | sh47```48492. Remove all installed toolchains with `rustup toolchain list` and `rustup toolchain uninstall <toolchain>`.50513. Install install nightly 2021-11-11 and make it default:5253```bash54rustup toolchain install nightly-2022-05-1155rustup default nightly-2022-05-1156```57584. Add wasm target for nightly toolchain:5960```bash61rustup target add wasm32-unknown-unknown --toolchain nightly-2022-05-1162```63645. Build:6566Opal67```bash68cargo build --release69```70Quartz71```bash72cargo build --features=quartz-runtime --release73```74Unique75```bash76cargo build --features=unique-runtime --release77```7879## Building as Parachain locally8081Note: checkout this project and all related projects (see below) in the sibling folders (both under the same folder)8283### Polkadot launch utility8485```86git clone https://github.com/paritytech/polkadot-launch87```8889### Build relay9091```92git clone https://github.com/paritytech/polkadot.git93cd polkadot94git checkout release-v0.9.2395cargo build --release96```9798### Build Unique parachain99100Run in the root of this project:101```102cargo build --release103```104105### Build Acala parachain (optional, full config only)106107```108git clone https://github.com/AcalaNetwork/Acala109cd Acala110git checkout 54db3acd409a0b787f116f20e163a3b24101ce38111make build-release112```113114## Running as Parachain locally115116```117./launch-testnet.sh118```119120Optional, full setup with Acala and Statemint121```122./launch-testnet-full.sh123```124125## Run Integration Tests1261271. Install all needed dependecies128```129cd tests130yarn install131```1321332. Run tests134```135yarn test136```137138139## Code Formatting140141### Apply formatting and clippy fixes142```bash143cargo clippy144cargo fmt145```146147### Format tests148```bash149pushd tests && yarn fix ; popd150```151152### Check code style in tests153```bash154cd tests && yarn eslint --ext .ts,.js src/155```156157158## Karura token transfer159160To get started, you need to open inbound and outbound hrmp channels.161162### Next, we need to register our asset at Karura.163```164assetRegistry -> registerForeignAsset(location, metadata)165location:166 V0(X2(Parent, Parachain(PARA_ID)))167metadata:168 name QTZ169 symbol QTZ170 decimals 18171minimalBalance 1172```173174### Next, we can send tokens from Quartz to Karura:175```176polkadotXcm -> reserveTransferAssets177dest:178 V0(X2(Parent, Parachain(<KARURA_PARA_ID>)))179beneficiary:180 X1(AccountId(Any, <ACCOUNT>))181assets:182 V1(Concrete(0,Here), Fungible(<AMOUNT>))183feeAssetItem:184 0185weightLimit:186 <LIMIT>187```188189The result will be displayed in ChainState190tokens -> accounts191192### To send tokens from Karura to Quartz:193```194xtokens -> transfer195196currencyId:197 ForeingAsset198 <TOKEN_ID>199200amount:201 <AMOUNT>202dest:203 V1204 (205 Parents:1,206 X2(Parachain(<KARURA_PARA_ID>), AccountId(Any, <ACCOUNT>)207 )208destWeight:209 <WEIGHT>210```123# Unique Parachain45## Project Description67The Unique Pallet is the core of NFT functionality. Like ERC-721 standard in Ethereum ecosystem, this pallet provides the8basement for creating collections of unique non-divisible things, also called Non Fungible Tokens (NFTs), minting NFT of9a given Collection, and managing their ownership.1011The pallet also enables storing NFT properties. Though (according to ERC-721) NFT properties belong to logic of a12concrete application that operates a Collection, so purposefully the NFT Tracking Module does not have any knowledge13about properties except their byte size leaving application logic out to be controlled by Smart Contracts.1415The Unique Chain also provides:1617- Smart Contracts Pallet and example smart contract that interacts with Unique Runtime18- ERC-1155 Functionality (currently PoC as Re-Fungible tokens, i.e. items that are still unique, but that can be split19 between multiple users)20- Variety of economic options for dapp producers to choose from to create freemium games and other ways to attract21 users. As a step one, we implemented an economic model when a collection sponsor can be set to pay for collection22 Transfer transactions.2324Wider Unique Ecosystem (most of it was developed during Hackusama):2526- [SubstraPunks Game hosted on IPFS](https://github.com/usetech-llc/substrapunks)27- [Unique Wallet and UI](https://uniqueapps.usetech.com/#/nft)28- [NFT Asset for Unity Framework](https://github.com/usetech-llc/nft_unity)2930Please see our [walk-through instructions](doc/hackusama_walk_through.md) to try everything out!3132## Application Development3334If you are building an application that operates NFT tokens, use [this document](doc/application_development.md).353637## Building3839Building Unique chain requires special versions of Rust and toolchain. We don't use the most recent versions of everything40so that we can keep the builds stable.41421. Install Rust:4344```bash45sudo apt-get install git curl libssl-dev llvm pkg-config libclang-dev clang make46curl https://sh.rustup.rs -sSf | sh47```48492. Remove all installed toolchains with `rustup toolchain list` and `rustup toolchain uninstall <toolchain>`.50513. Install install nightly 2021-11-11 and make it default:5253```bash54rustup toolchain install nightly-2022-05-1155rustup default nightly-2022-05-1156```57584. Add wasm target for nightly toolchain:5960```bash61rustup target add wasm32-unknown-unknown --toolchain nightly-2022-05-1162```63645. Build:6566Opal67```bash68cargo build --release69```70Quartz71```bash72cargo build --features=quartz-runtime --release73```74Unique75```bash76cargo build --features=unique-runtime --release77```7879## Building as Parachain locally8081Note: checkout this project and all related projects (see below) in the sibling folders (both under the same folder)8283### Polkadot launch utility8485```86git clone https://github.com/paritytech/polkadot-launch87```8889### Build relay9091```92git clone https://github.com/paritytech/polkadot.git93cd polkadot94git checkout release-v0.9.2495cargo build --release96```9798### Build Unique parachain99100Run in the root of this project:101```102cargo build --release103```104105### Build Acala parachain (optional, full config only)106107```108git clone https://github.com/AcalaNetwork/Acala109cd Acala110git checkout 54db3acd409a0b787f116f20e163a3b24101ce38111make build-release112```113114## Running as Parachain locally115116```117./launch-testnet.sh118```119120Optional, full setup with Acala and Statemint121```122./launch-testnet-full.sh123```124125## Run Integration Tests1261271. Install all needed dependecies128```129cd tests130yarn install131```1321332. Run tests134```135yarn test136```137138139## Code Formatting140141### Apply formatting and clippy fixes142```bash143cargo clippy144cargo fmt145```146147### Format tests148```bash149pushd tests && yarn fix ; popd150```151152### Check code style in tests153```bash154cd tests && yarn eslint --ext .ts,.js src/155```156157158## Karura token transfer159160To get started, you need to open inbound and outbound hrmp channels.161162### Next, we need to register our asset at Karura.163```164assetRegistry -> registerForeignAsset(location, metadata)165location:166 V0(X2(Parent, Parachain(PARA_ID)))167metadata:168 name QTZ169 symbol QTZ170 decimals 18171minimalBalance 1172```173174### Next, we can send tokens from Quartz to Karura:175```176polkadotXcm -> reserveTransferAssets177dest:178 V0(X2(Parent, Parachain(<KARURA_PARA_ID>)))179beneficiary:180 X1(AccountId(Any, <ACCOUNT>))181assets:182 V1(Concrete(0,Here), Fungible(<AMOUNT>))183feeAssetItem:184 0185weightLimit:186 <LIMIT>187```188189The result will be displayed in ChainState190tokens -> accounts191192### To send tokens from Karura to Quartz:193```194xtokens -> transfer195196currencyId:197 ForeingAsset198 <TOKEN_ID>199200amount:201 <AMOUNT>202dest:203 V1204 (205 Parents:1,206 X2(Parachain(<KARURA_PARA_ID>), AccountId(Any, <ACCOUNT>)207 )208destWeight:209 <WEIGHT>210```node/cli/Cargo.tomldiffbeforeafterboth--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -291,7 +291,7 @@
license = 'GPLv3'
name = 'unique-node'
repository = 'https://github.com/UniqueNetwork/unique-chain'
-version = '0.9.23'
+version = '0.9.24'
[[bin]]
name = 'unique-collator'
runtime/common/Cargo.tomldiffbeforeafterboth--- a/runtime/common/Cargo.toml
+++ b/runtime/common/Cargo.toml
@@ -6,7 +6,7 @@
license = 'All Rights Reserved'
name = 'unique-runtime-common'
repository = 'https://github.com/UniqueNetwork/unique-chain'
-version = '0.9.23'
+version = '0.9.24'
[features]
default = ['std']
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -10,7 +10,7 @@
license = 'GPLv3'
name = 'opal-runtime'
repository = 'https://github.com/UniqueNetwork/unique-chain'
-version = '0.9.23'
+version = '0.9.24'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -192,7 +192,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 923000,
+ spec_version: 924000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -10,7 +10,7 @@
license = 'GPLv3'
name = 'quartz-runtime'
repository = 'https://github.com/UniqueNetwork/unique-chain'
-version = '0.9.23'
+version = '0.9.24'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
runtime/quartz/src/lib.rsdiffbeforeafterboth--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -191,7 +191,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 923000,
+ spec_version: 924000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -10,7 +10,7 @@
license = 'GPLv3'
name = 'unique-runtime'
repository = 'https://github.com/UniqueNetwork/unique-chain'
-version = '0.9.23'
+version = '0.9.24'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
runtime/unique/src/lib.rsdiffbeforeafterboth--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -190,7 +190,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 923000,
+ spec_version: 924000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
tests/README.mddiffbeforeafterboth--- a/tests/README.md
+++ b/tests/README.md
@@ -5,10 +5,10 @@
1. Checkout polkadot in sibling folder with this project
```bash
git clone https://github.com/paritytech/polkadot.git && cd polkadot
-git checkout release-v0.9.23
+git checkout release-v0.9.24
```
-2. Build with nightly-2021-11-11
+2. Build with nightly-2022-05-11
```bash
cargo build --release
```