difftreelog
Merge pull request #815 from UniqueNetwork/feature/sapphire-is-quartz
in: master
Move sapphire to quartz
11 files changed
.github/workflows/forkless-update-data.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-data.yml
+++ b/.github/workflows/forkless-update-data.yml
@@ -38,14 +38,14 @@
network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}}
network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}, relay_branch {${{ env.POLKADOT_MAINNET_BRANCH }}}
network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}}
- network {sapphire}, wasm_name {opal}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, replica_from_address {${{ env.SAPPHIRE_REPLICA_FROM }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}
+ network {sapphire}, wasm_name {quartz}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, replica_from_address {${{ env.SAPPHIRE_REPLICA_FROM }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}
forkless-update-data:
needs: execution-marix
# The type of runner that the job will run on
runs-on: [self-hosted-ci,large]
timeout-minutes: 1380
-
+
name: ${{ matrix.network }}-data
strategy:
matrix:
@@ -74,7 +74,7 @@
REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
POLKADOT_BUILD_BRANCH=${{ matrix.relay_branch }}
- POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
+ POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
# POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
# MAINNET_TAG=${{ matrix.mainnet_tag }}
MAINNET_BRANCH=${{ matrix.mainnet_branch }}
@@ -163,7 +163,7 @@
- name: Stop running containers
if: always() # run this step always
run: docker-compose -f ".docker/docker-compose-forkless-data.${{ matrix.network }}.yml" down --volumes
-
+
- name: Remove builder cache
if: always() # run this step always
run: |
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-nodata.yml
+++ b/.github/workflows/forkless-update-nodata.yml
@@ -37,7 +37,7 @@
network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}}
network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}, relay_branch {${{ env.POLKADOT_MAINNET_BRANCH }}}
network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}}
- network {sapphire}, wasm_name {opal}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}
+ network {sapphire}, wasm_name {quartz}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}
forkless-update-nodata:
@@ -53,7 +53,7 @@
strategy:
matrix:
- include: ${{fromJson(needs.execution-marix.outputs.matrix)}}
+ include: ${{fromJson(needs.execution-marix.outputs.matrix)}}
steps:
- name: Clean Workspace
@@ -76,7 +76,7 @@
REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
POLKADOT_BUILD_BRANCH=${{ matrix.relay_branch }}
- POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
+ POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
# POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
# MAINNET_TAG=${{ matrix.mainnet_tag }}
MAINNET_BRANCH=${{ matrix.mainnet_branch }}
@@ -163,8 +163,8 @@
- name: Show docker logs
if: success() || failure()
run: cat './forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}/node-parachain.log'
-
- - name: Run Parallel tests
+
+ - name: Run Parallel tests
working-directory: tests
run: |
yarn install
@@ -175,7 +175,7 @@
NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}
env:
RPC_URL: http://127.0.0.1:9933/
-
+
- name: Test Report Parallel
uses: phoenix-actions/test-reporting@v8
id: test-report-parallel
@@ -185,10 +185,10 @@
path: tests/mochawesome-report/test-parallel-*.json # Path to test results
reporter: mochawesome-json
fail-on-error: 'false'
-
- - name: Run Sequential tests
+
+ - name: Run Sequential tests
working-directory: tests
- if: success() || failure()
+ if: success() || failure()
run: |
yarn install
yarn add mochawesome
@@ -198,7 +198,7 @@
NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}
env:
RPC_URL: http://127.0.0.1:9933/
-
+
- name: Test Report Sequential
uses: phoenix-actions/test-reporting@v8
id: test-report-sequential
@@ -212,7 +212,7 @@
- name: Stop running containers
if: always() # run this step always
run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" down
-
+
- name: Remove builder cache
if: always() # run this step always
run: |
.github/workflows/integration-tests.ymldiffbeforeafterboth--- a/.github/workflows/integration-tests.yml
+++ b/.github/workflows/integration-tests.yml
@@ -36,10 +36,10 @@
with:
matrix: |
network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}
- network {sapphire}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}
+ network {sapphire}, wasm_name {quartz}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}
network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}
network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}
-
+
parallel-test:
needs: nodes-execution-matrix
# The type of runner that the job will run on
@@ -77,14 +77,14 @@
REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
- POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
+ POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
MAINNET_TAG=${{ matrix.mainnet_tag }}
MAINNET_BRANCH=${{ matrix.mainnet_branch }}
NETWORK=${{ matrix.network }}
BRANCH=${{ github.head_ref }}
WASM_NAME=${{ matrix.wasm_name }}
-
+
- name: Show build configuration
run: cat .docker/docker-compose.node.${{ matrix.network }}.yml
@@ -95,7 +95,7 @@
output_file: .docker/launch-config-forkless-nodata.json
variables: |
NETWORK=${{ matrix.network }}
-
+
- name: Show launch-config-forkless configuration
run: cat .docker/launch-config-forkless-nodata.json
@@ -172,8 +172,8 @@
path: tests/mochawesome-report/test-parallel-*.json # Path to test results
reporter: mochawesome-json
fail-on-error: 'false'
-
-
+
+
- name: Stop running containers
if: always() # run this step always
run: docker-compose -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes
@@ -184,7 +184,7 @@
docker builder prune -f -a
docker system prune -f
docker image prune -f -a
-
+
- name: List files in Workspace
if: always()
run: ls -la ./
@@ -226,14 +226,14 @@
REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
- POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
+ POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
MAINNET_TAG=${{ matrix.mainnet_tag }}
MAINNET_BRANCH=${{ matrix.mainnet_branch }}
NETWORK=${{ matrix.network }}
BRANCH=${{ github.head_ref }}
WASM_NAME=${{ matrix.wasm_name }}
-
+
- name: Show build configuration
run: cat .docker/docker-compose.node.${{ matrix.network }}.yml
@@ -244,7 +244,7 @@
output_file: .docker/launch-config-forkless-nodata.json
variables: |
NETWORK=${{ matrix.network }}
-
+
- name: Show launch-config-forkless configuration
run: cat .docker/launch-config-forkless-nodata.json
@@ -321,7 +321,7 @@
path: tests/mochawesome-report/test-sequential-*.json # Path to test results
reporter: mochawesome-json
fail-on-error: 'false'
-
+
- name: Stop running containers
if: always() # run this step always
run: docker-compose -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes
@@ -332,7 +332,7 @@
docker builder prune -f -a
docker system prune -f
docker image prune -f -a
-
+
- name: List files in Workspace
if: always()
run: ls -la ./
.github/workflows/node-only-update.ymldiffbeforeafterboth--- a/.github/workflows/node-only-update.yml
+++ b/.github/workflows/node-only-update.yml
@@ -38,7 +38,7 @@
with:
matrix: |
network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}}
- network {sapphire}, wasm_name {opal}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}
+ network {sapphire}, wasm_name {quartz}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}
network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}}
network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}, relay_branch {${{ env.POLKADOT_MAINNET_BRANCH }}}
@@ -214,7 +214,7 @@
docker exec node-parachain kill -SIGUSR1 ${PID}
echo "SIGUSR1 sent to Polkadot-launch PID: $PID"
sleep 60s
- echo -e "Show logs of node-parachain container.\n"
+ echo -e "Show logs of node-parachain container.\n"
docker logs ${ContainerID}
- name: Get chain logs in case of docker image crashed after Polkadot Launch restart
.github/workflows/try-runtime.ymldiffbeforeafterboth--- a/.github/workflows/try-runtime.yml
+++ b/.github/workflows/try-runtime.yml
@@ -34,7 +34,7 @@
with:
matrix: |
network {opal}, wasm_name {opal}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}
- network {sapphire}, wasm_name {opal}, replica_from_address {${{ env.SAPPHIRE_REPLICA_FROM }}}
+ network {sapphire}, wasm_name {quartz}, replica_from_address {${{ env.SAPPHIRE_REPLICA_FROM }}}
network {quartz}, wasm_name {quartz}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}
network {unique}, wasm_name {unique}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}
@@ -49,7 +49,7 @@
strategy:
matrix:
include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}
-
+
steps:
- name: Clean Workspace
@@ -79,13 +79,13 @@
- name: Build the stack
run: docker-compose -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up --build --force-recreate --timeout 300 --remove-orphans --exit-code-from try-runtime
-
+
- name: Collect Docker Logs
if: success() || failure()
uses: jwalton/gh-docker-logs@v2.2.0
with:
dest: './try-runtime-logs.${{ matrix.network }}'
- images: 'try-runtime'
+ images: 'try-runtime'
- name: Show docker logs
run: cat './try-runtime-logs.${{ matrix.network }}/try-runtime.log'
@@ -93,7 +93,7 @@
- name: Stop running containers
if: always() # run this step always
run: docker-compose -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down
-
+
- name: Remove builder cache
if: always() # run this step always
run: |
node/cli/Cargo.tomldiffbeforeafterboth--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -340,7 +340,7 @@
'opal-runtime?/try-runtime',
'try-runtime-cli/try-runtime',
]
-sapphire-runtime = ['opal-runtime', 'opal-runtime/become-sapphire']
+sapphire-runtime = ['quartz-runtime', 'quartz-runtime/become-sapphire']
pov-estimate = [
'unique-runtime?/pov-estimate',
'quartz-runtime?/pov-estimate',
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -47,7 +47,7 @@
'sp-runtime/runtime-benchmarks',
'xcm-builder/runtime-benchmarks',
'pallet-maintenance/runtime-benchmarks',
- 'cumulus-pallet-parachain-system/runtime-benchmarks'
+ 'cumulus-pallet-parachain-system/runtime-benchmarks',
]
try-runtime = [
'frame-try-runtime',
@@ -196,7 +196,6 @@
'foreign-assets',
'pallet-test-utils',
]
-become-sapphire = []
pov-estimate = []
refungible = []
runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -44,14 +44,7 @@
pub use runtime_common::*;
-#[cfg(feature = "become-sapphire")]
-pub const RUNTIME_NAME: &str = "sapphire";
-#[cfg(feature = "become-sapphire")]
-pub const TOKEN_SYMBOL: &str = "QTZ";
-
-#[cfg(not(feature = "become-sapphire"))]
pub const RUNTIME_NAME: &str = "opal";
-#[cfg(not(feature = "become-sapphire"))]
pub const TOKEN_SYMBOL: &str = "OPL";
/// This runtime version.
@@ -68,15 +61,6 @@
parameter_types! {
pub const Version: RuntimeVersion = VERSION;
-}
-#[cfg(feature = "become-sapphire")]
-parameter_types! {
- pub const SS58Prefix: u16 = 8883;
- pub const ChainId: u64 = 8883;
-}
-
-#[cfg(not(feature = "become-sapphire"))]
-parameter_types! {
pub const SS58Prefix: u16 = 42;
pub const ChainId: u64 = 8882;
}
runtime/quartz/Cargo.tomldiffbeforeafterboth1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Quartz Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'quartz-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version.workspace = true1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'quartz-runtime']20runtime-benchmarks = [21 'hex-literal',22 'frame-benchmarking',23 'frame-support/runtime-benchmarks',24 'frame-system-benchmarking',25 'frame-system/runtime-benchmarks',26 'pallet-ethereum/runtime-benchmarks',27 'pallet-evm-migration/runtime-benchmarks',28 'pallet-evm-coder-substrate/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',31 'pallet-configuration/runtime-benchmarks',32 'pallet-common/runtime-benchmarks',33 'pallet-structure/runtime-benchmarks',34 'pallet-fungible/runtime-benchmarks',35 'pallet-refungible/runtime-benchmarks',36 'pallet-nonfungible/runtime-benchmarks',37 'pallet-proxy-rmrk-core/runtime-benchmarks',38 'pallet-proxy-rmrk-equip/runtime-benchmarks',39 'pallet-unique/runtime-benchmarks',40 'pallet-foreign-assets/runtime-benchmarks',41 'pallet-inflation/runtime-benchmarks',42 'pallet-collator-selection/runtime-benchmarks',43 'pallet-identity/runtime-benchmarks',44 'pallet-app-promotion/runtime-benchmarks',45 'pallet-xcm/runtime-benchmarks',46 'sp-runtime/runtime-benchmarks',47 'xcm-builder/runtime-benchmarks',48 'pallet-maintenance/runtime-benchmarks',49 'cumulus-pallet-parachain-system/runtime-benchmarks',50]51try-runtime = [52 'frame-try-runtime',53 'frame-executive/try-runtime',54 'frame-support/try-runtime',55 'frame-system/try-runtime',56 'cumulus-pallet-parachain-system/try-runtime',57 'parachain-info/try-runtime',58 'pallet-aura/try-runtime',59 'cumulus-pallet-aura-ext/try-runtime',60 'pallet-balances/try-runtime',61 'pallet-randomness-collective-flip/try-runtime',62 'pallet-timestamp/try-runtime',63 'pallet-transaction-payment/try-runtime',64 'pallet-treasury/try-runtime',65 'pallet-sudo/try-runtime',66 'orml-vesting/try-runtime',67 'orml-xtokens/try-runtime',68 'orml-tokens/try-runtime',69 'cumulus-pallet-xcmp-queue/try-runtime',70 'pallet-xcm/try-runtime',71 'cumulus-pallet-xcm/try-runtime',72 'cumulus-pallet-dmp-queue/try-runtime',73 "pallet-authorship/try-runtime",74 "pallet-collator-selection/try-runtime",75 "pallet-session/try-runtime",76 "pallet-identity/try-runtime",77 'pallet-inflation/try-runtime',78 'pallet-unique/try-runtime',79 'pallet-configuration/try-runtime',80 'pallet-charge-transaction/try-runtime',81 'pallet-common/try-runtime',82 'pallet-fungible/try-runtime',83 'pallet-refungible/try-runtime',84 'pallet-nonfungible/try-runtime',85 'pallet-structure/try-runtime',86 'pallet-proxy-rmrk-core/try-runtime',87 'pallet-proxy-rmrk-equip/try-runtime',88 'pallet-app-promotion/try-runtime',89 'pallet-foreign-assets/try-runtime',90 'pallet-ethereum/try-runtime',91 'pallet-evm/try-runtime',92 'pallet-evm-coder-substrate/try-runtime',93 'pallet-evm-contract-helpers/try-runtime',94 'pallet-evm-transaction-payment/try-runtime',95 'pallet-evm-migration/try-runtime',96 'pallet-maintenance/try-runtime',97 'fp-self-contained/try-runtime',98]99std = [100 'codec/std',101 'cumulus-pallet-aura-ext/std',102 'cumulus-pallet-parachain-system/std',103 'cumulus-pallet-xcm/std',104 'cumulus-pallet-xcmp-queue/std',105 'cumulus-primitives-core/std',106 'cumulus-primitives-utility/std',107 'frame-try-runtime/std',108 'frame-executive/std',109 'frame-support/std',110 'frame-system/std',111 'frame-system-rpc-runtime-api/std',112 'pallet-aura/std',113 'pallet-balances/std',114 # 'pallet-contracts/std',115 # 'pallet-contracts-primitives/std',116 # 'pallet-contracts-rpc-runtime-api/std',117 # 'pallet-contract-helpers/std',118 "pallet-authorship/std",119 'pallet-collator-selection/std',120 "pallet-session/std",121 "pallet-identity/std",122 'pallet-randomness-collective-flip/std',123 'pallet-sudo/std',124 'pallet-timestamp/std',125 'pallet-transaction-payment/std',126 'pallet-transaction-payment-rpc-runtime-api/std',127 'pallet-treasury/std',128 'pallet-evm/std',129 'pallet-evm-migration/std',130 'pallet-evm-contract-helpers/std',131 'pallet-evm-transaction-payment/std',132 'pallet-evm-coder-substrate/std',133 'pallet-ethereum/std',134 'pallet-base-fee/std',135 'fp-rpc/std',136 'up-rpc/std',137 'up-pov-estimate-rpc/std',138 'app-promotion-rpc/std',139 'fp-evm-mapping/std',140 'fp-self-contained/std',141 'parachain-info/std',142 'serde',143 'pallet-inflation/std',144 'pallet-configuration/std',145 'pallet-app-promotion/std',146 'pallet-common/std',147 'pallet-structure/std',148 'pallet-fungible/std',149 'pallet-refungible/std',150 'pallet-nonfungible/std',151 'pallet-proxy-rmrk-core/std',152 'pallet-proxy-rmrk-equip/std',153 'pallet-unique/std',154 'pallet-charge-transaction/std',155 'up-data-structs/std',156 'sp-api/std',157 'sp-block-builder/std',158 "sp-consensus-aura/std",159 'sp-core/std',160 'sp-inherents/std',161 'sp-io/std',162 'sp-offchain/std',163 'sp-runtime/std',164 'sp-session/std',165 'sp-std/std',166 'sp-transaction-pool/std',167 'sp-version/std',168 'xcm/std',169 'xcm-builder/std',170 'xcm-executor/std',171 'up-common/std',172 'rmrk-rpc/std',173 'evm-coder/std',174 'up-sponsorship/std',175176 "orml-vesting/std",177 "orml-tokens/std",178 "orml-xtokens/std",179 "orml-traits/std",180 "pallet-foreign-assets/std",181 "pallet-maintenance/std",182]183limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']184quartz-runtime = ['refungible', 'app-promotion', 'collator-selection', 'foreign-assets']185pov-estimate = []186187refungible = []188scheduler = []189rmrk = []190foreign-assets = []191collator-selection = []192app-promotion = []193194################################################################################195# Substrate Dependencies196197[dependencies.codec]198default-features = false199features = ['derive']200package = 'parity-scale-codec'201version = '3.1.2'202203[dependencies.frame-benchmarking]204default-features = false205git = "https://github.com/paritytech/substrate"206optional = true207branch = "polkadot-v0.9.36"208209[dependencies.frame-try-runtime]210default-features = false211git = "https://github.com/paritytech/substrate"212optional = true213branch = "polkadot-v0.9.36"214215[dependencies.frame-executive]216default-features = false217git = "https://github.com/paritytech/substrate"218branch = "polkadot-v0.9.36"219220[dependencies.frame-support]221default-features = false222git = "https://github.com/paritytech/substrate"223branch = "polkadot-v0.9.36"224225[dependencies.frame-system]226default-features = false227git = "https://github.com/paritytech/substrate"228branch = "polkadot-v0.9.36"229230[dependencies.frame-system-benchmarking]231default-features = false232git = "https://github.com/paritytech/substrate"233optional = true234branch = "polkadot-v0.9.36"235236[dependencies.frame-system-rpc-runtime-api]237default-features = false238git = "https://github.com/paritytech/substrate"239branch = "polkadot-v0.9.36"240241[dependencies.hex-literal]242optional = true243version = '0.3.3'244245[dependencies.serde]246default-features = false247features = ['derive']248optional = true249version = '1.0.130'250251[dependencies.pallet-aura]252default-features = false253git = "https://github.com/paritytech/substrate"254branch = "polkadot-v0.9.36"255256[dependencies.pallet-authorship]257default-features = false258git = 'https://github.com/paritytech/substrate'259branch = 'polkadot-v0.9.36'260261[dependencies.pallet-session]262default-features = false263git = 'https://github.com/paritytech/substrate'264branch = 'polkadot-v0.9.36'265266[dependencies.pallet-balances]267default-features = false268git = "https://github.com/paritytech/substrate"269branch = "polkadot-v0.9.36"270271# Contracts specific packages272# [dependencies.pallet-contracts]273# git = 'https://github.com/paritytech/substrate'274# default-features = false275# branch = 'master'276# version = '4.0.0-dev'277278# [dependencies.pallet-contracts-primitives]279# git = 'https://github.com/paritytech/substrate'280# default-features = false281# branch = 'master'282# version = '4.0.0-dev'283284# [dependencies.pallet-contracts-rpc-runtime-api]285# git = 'https://github.com/paritytech/substrate'286# default-features = false287# branch = 'master'288# version = '4.0.0-dev'289290[dependencies.pallet-randomness-collective-flip]291default-features = false292git = "https://github.com/paritytech/substrate"293branch = "polkadot-v0.9.36"294295[dependencies.pallet-sudo]296default-features = false297git = "https://github.com/paritytech/substrate"298branch = "polkadot-v0.9.36"299300[dependencies.pallet-timestamp]301default-features = false302git = "https://github.com/paritytech/substrate"303branch = "polkadot-v0.9.36"304305[dependencies.pallet-transaction-payment]306default-features = false307git = "https://github.com/paritytech/substrate"308branch = "polkadot-v0.9.36"309310[dependencies.pallet-transaction-payment-rpc-runtime-api]311default-features = false312git = "https://github.com/paritytech/substrate"313branch = "polkadot-v0.9.36"314315[dependencies.pallet-treasury]316default-features = false317git = "https://github.com/paritytech/substrate"318branch = "polkadot-v0.9.36"319320[dependencies.sp-arithmetic]321default-features = false322git = "https://github.com/paritytech/substrate"323branch = "polkadot-v0.9.36"324325[dependencies.sp-api]326default-features = false327git = "https://github.com/paritytech/substrate"328branch = "polkadot-v0.9.36"329330[dependencies.sp-block-builder]331default-features = false332git = "https://github.com/paritytech/substrate"333branch = "polkadot-v0.9.36"334335[dependencies.sp-core]336default-features = false337git = "https://github.com/paritytech/substrate"338branch = "polkadot-v0.9.36"339340[dependencies.sp-consensus-aura]341default-features = false342git = "https://github.com/paritytech/substrate"343branch = "polkadot-v0.9.36"344345[dependencies.sp-inherents]346default-features = false347git = "https://github.com/paritytech/substrate"348branch = "polkadot-v0.9.36"349350[dependencies.sp-io]351default-features = false352git = "https://github.com/paritytech/substrate"353branch = "polkadot-v0.9.36"354355[dependencies.sp-offchain]356default-features = false357git = "https://github.com/paritytech/substrate"358branch = "polkadot-v0.9.36"359360[dependencies.sp-runtime]361default-features = false362git = "https://github.com/paritytech/substrate"363branch = "polkadot-v0.9.36"364365[dependencies.sp-session]366default-features = false367git = "https://github.com/paritytech/substrate"368branch = "polkadot-v0.9.36"369370[dependencies.sp-std]371default-features = false372git = "https://github.com/paritytech/substrate"373branch = "polkadot-v0.9.36"374375[dependencies.sp-transaction-pool]376default-features = false377git = "https://github.com/paritytech/substrate"378branch = "polkadot-v0.9.36"379380[dependencies.sp-version]381default-features = false382git = "https://github.com/paritytech/substrate"383branch = "polkadot-v0.9.36"384385[dependencies.smallvec]386version = '1.6.1'387388################################################################################389# Cumulus dependencies390391[dependencies.parachain-info]392default-features = false393git = "https://github.com/paritytech/cumulus"394branch = "polkadot-v0.9.36"395396[dependencies.cumulus-pallet-aura-ext]397git = "https://github.com/paritytech/cumulus"398branch = "polkadot-v0.9.36"399default-features = false400401[dependencies.cumulus-pallet-parachain-system]402git = "https://github.com/paritytech/cumulus"403branch = "polkadot-v0.9.36"404default-features = false405406[dependencies.cumulus-primitives-core]407git = "https://github.com/paritytech/cumulus"408branch = "polkadot-v0.9.36"409default-features = false410411[dependencies.cumulus-pallet-xcm]412git = "https://github.com/paritytech/cumulus"413branch = "polkadot-v0.9.36"414default-features = false415416[dependencies.cumulus-pallet-dmp-queue]417git = "https://github.com/paritytech/cumulus"418branch = "polkadot-v0.9.36"419default-features = false420421[dependencies.cumulus-pallet-xcmp-queue]422git = "https://github.com/paritytech/cumulus"423branch = "polkadot-v0.9.36"424default-features = false425426[dependencies.cumulus-primitives-utility]427git = "https://github.com/paritytech/cumulus"428branch = "polkadot-v0.9.36"429default-features = false430431[dependencies.cumulus-primitives-timestamp]432git = "https://github.com/paritytech/cumulus"433branch = "polkadot-v0.9.36"434default-features = false435436################################################################################437# Polkadot dependencies438439[dependencies.polkadot-parachain]440git = "https://github.com/paritytech/polkadot"441branch = "release-v0.9.36"442default-features = false443444[dependencies.xcm]445git = "https://github.com/paritytech/polkadot"446branch = "release-v0.9.36"447default-features = false448449[dependencies.xcm-builder]450git = "https://github.com/paritytech/polkadot"451branch = "release-v0.9.36"452default-features = false453454[dependencies.xcm-executor]455git = "https://github.com/paritytech/polkadot"456branch = "release-v0.9.36"457default-features = false458459[dependencies.pallet-xcm]460git = "https://github.com/paritytech/polkadot"461branch = "release-v0.9.36"462default-features = false463464################################################################################465# RMRK dependencies466467# todo git468[dependencies.rmrk-rpc]469default-features = false470path = "../../primitives/rmrk-rpc"471472################################################################################473# local dependencies474475[dependencies]476orml-vesting.workspace = true477orml-xtokens.workspace = true478orml-tokens.workspace = true479orml-traits.workspace = true480481log = { version = "0.4.16", default-features = false }482up-common = { path = "../../primitives/common", default-features = false }483scale-info = { version = "2.0.1", default-features = false, features = [484 "derive",485] }486derivative = "2.2.0"487pallet-unique = { path = '../../pallets/unique', default-features = false }488up-rpc = { path = "../../primitives/rpc", default-features = false }489up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }490app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }491fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }492fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }493pallet-inflation = { path = '../../pallets/inflation', default-features = false }494pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }495up-data-structs = { path = '../../primitives/data-structs', default-features = false }496pallet-collator-selection = { default-features = false, path = "../../pallets/collator-selection" }497pallet-identity = { default-features = false, path = "../../pallets/identity" }498pallet-configuration = { default-features = false, path = "../../pallets/configuration" }499pallet-common = { default-features = false, path = "../../pallets/common" }500pallet-structure = { default-features = false, path = "../../pallets/structure" }501pallet-fungible = { default-features = false, path = "../../pallets/fungible" }502pallet-refungible = { default-features = false, path = "../../pallets/refungible" }503pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }504pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }505pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }506# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }507pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.36", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }508pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }509pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }510pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }511pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }512pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }513pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }514pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }515fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }516fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }517pallet-evm-precompile-simple = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }518evm-coder = { default-features = false, path = '../../crates/evm-coder' }519up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.36' }520pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }521pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }522precompile-utils-macro = { path = "../common/ethereum/precompiles/utils/macro" }523num_enum = { version = "0.5.3", default-features = false }524525################################################################################526# Other Dependencies527528impl-trait-for-tuples = "0.2.2"529530################################################################################531# Dev Dependencies532533[dev-dependencies.logtest]534version = "2.0.0"535536################################################################################537# Build Dependencies538539[build-dependencies.substrate-wasm-builder]540git = "https://github.com/paritytech/substrate"541branch = "polkadot-v0.9.36"runtime/quartz/src/lib.rsdiffbeforeafterboth--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -44,6 +44,9 @@
pub use runtime_common::*;
+#[cfg(feature = "become-sapphire")]
+pub const RUNTIME_NAME: &str = "sapphire";
+#[cfg(not(feature = "become-sapphire"))]
pub const RUNTIME_NAME: &str = "quartz";
pub const TOKEN_SYMBOL: &str = "QTZ";
@@ -61,6 +64,15 @@
parameter_types! {
pub const Version: RuntimeVersion = VERSION;
+}
+#[cfg(feature = "become-sapphire")]
+parameter_types! {
+ pub const SS58Prefix: u16 = 8883;
+ pub const ChainId: u64 = 8883;
+}
+
+#[cfg(not(feature = "become-sapphire"))]
+parameter_types! {
pub const SS58Prefix: u8 = 255;
pub const ChainId: u64 = 8881;
}
tests/src/pallet-presence.test.tsdiffbeforeafterboth--- a/tests/src/pallet-presence.test.ts
+++ b/tests/src/pallet-presence.test.ts
@@ -69,7 +69,7 @@
const collatorSelection = ['authorship', 'session', 'collatorselection', 'identity'];
const testUtils = 'testutils';
- if (chain.eq('OPAL by UNIQUE') || chain.eq('SAPPHIRE by UNIQUE')) {
+ if (chain.eq('OPAL by UNIQUE')) {
requiredPallets.push(
refungible,
foreignAssets,
@@ -77,7 +77,7 @@
testUtils,
...rmrkPallets,
);
- } else if (chain.eq('QUARTZ by UNIQUE')) {
+ } else if (chain.eq('QUARTZ by UNIQUE') || chain.eq('SAPPHIRE by UNIQUE')) {
requiredPallets.push(
refungible,
appPromotion,