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

difftreelog

Merge pull request #815 from UniqueNetwork/feature/sapphire-is-quartz

Yaroslav Bolyukin2022-12-29parents: #a2c419c #4dff934.patch.diff
in: master
Move sapphire to quartz

11 files changed

modified.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: |
modified.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: |
modified.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 ./
modified.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
modified.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: |
modifiednode/cli/Cargo.tomldiffbeforeafterboth
after · node/cli/Cargo.toml
1################################################################################2# Build Dependencies34[build-dependencies.substrate-build-script-utils]5git = "https://github.com/paritytech/substrate"6branch = "polkadot-v0.9.36"78################################################################################9# Substrate Dependecies1011[dependencies.codec]12default-features = false13features = ['derive']14package = 'parity-scale-codec'15version = '3.1.2'1617[dependencies.frame-benchmarking]18git = "https://github.com/paritytech/substrate"19branch = "polkadot-v0.9.36"2021[dependencies.frame-benchmarking-cli]22git = "https://github.com/paritytech/substrate"23branch = "polkadot-v0.9.36"2425[dependencies.try-runtime-cli]26git = "https://github.com/paritytech/substrate"27branch = "polkadot-v0.9.36"2829[dependencies.pallet-transaction-payment-rpc]30git = "https://github.com/paritytech/substrate"31branch = "polkadot-v0.9.36"3233[dependencies.substrate-prometheus-endpoint]34git = "https://github.com/paritytech/substrate"35branch = "polkadot-v0.9.36"3637[dependencies.sc-basic-authorship]38git = "https://github.com/paritytech/substrate"39branch = "polkadot-v0.9.36"4041[dependencies.sc-chain-spec]42git = "https://github.com/paritytech/substrate"43branch = "polkadot-v0.9.36"4445[dependencies.sc-cli]46git = "https://github.com/paritytech/substrate"47branch = "polkadot-v0.9.36"4849[dependencies.sc-client-api]50git = "https://github.com/paritytech/substrate"51branch = "polkadot-v0.9.36"5253[dependencies.sc-consensus]54git = "https://github.com/paritytech/substrate"55branch = "polkadot-v0.9.36"5657[dependencies.sc-consensus-aura]58git = "https://github.com/paritytech/substrate"59branch = "polkadot-v0.9.36"6061[dependencies.sc-executor]62git = "https://github.com/paritytech/substrate"63branch = "polkadot-v0.9.36"6465[dependencies.sc-finality-grandpa]66git = "https://github.com/paritytech/substrate"67branch = "polkadot-v0.9.36"6869[dependencies.sc-keystore]70git = "https://github.com/paritytech/substrate"71branch = "polkadot-v0.9.36"7273[dependencies.sc-rpc]74git = "https://github.com/paritytech/substrate"75branch = "polkadot-v0.9.36"7677[dependencies.sc-rpc-api]78git = "https://github.com/paritytech/substrate"79branch = "polkadot-v0.9.36"8081[dependencies.sc-service]82git = "https://github.com/paritytech/substrate"83branch = "polkadot-v0.9.36"8485[dependencies.sc-telemetry]86git = "https://github.com/paritytech/substrate"87branch = "polkadot-v0.9.36"8889[dependencies.sc-transaction-pool]90git = "https://github.com/paritytech/substrate"91branch = "polkadot-v0.9.36"9293[dependencies.sc-tracing]94git = "https://github.com/paritytech/substrate"95branch = "polkadot-v0.9.36"9697[dependencies.sc-sysinfo]98git = "https://github.com/paritytech/substrate"99branch = "polkadot-v0.9.36"100101[dependencies.sp-block-builder]102git = "https://github.com/paritytech/substrate"103branch = "polkadot-v0.9.36"104105[dependencies.sp-api]106git = "https://github.com/paritytech/substrate"107branch = "polkadot-v0.9.36"108109[dependencies.sp-blockchain]110git = "https://github.com/paritytech/substrate"111branch = "polkadot-v0.9.36"112113[dependencies.sp-consensus]114git = "https://github.com/paritytech/substrate"115branch = "polkadot-v0.9.36"116117[dependencies.sp-consensus-aura]118git = "https://github.com/paritytech/substrate"119branch = "polkadot-v0.9.36"120121[dependencies.sp-core]122git = "https://github.com/paritytech/substrate"123branch = "polkadot-v0.9.36"124125[dependencies.sp-io]126git = "https://github.com/paritytech/substrate"127branch = "polkadot-v0.9.36"128129[dependencies.sp-finality-grandpa]130git = "https://github.com/paritytech/substrate"131branch = "polkadot-v0.9.36"132133[dependencies.sp-inherents]134git = "https://github.com/paritytech/substrate"135branch = "polkadot-v0.9.36"136137[dependencies.sp-keystore]138git = "https://github.com/paritytech/substrate"139branch = "polkadot-v0.9.36"140141[dependencies.sp-offchain]142git = "https://github.com/paritytech/substrate"143branch = "polkadot-v0.9.36"144145[dependencies.sp-runtime]146git = "https://github.com/paritytech/substrate"147branch = "polkadot-v0.9.36"148149[dependencies.sp-session]150git = "https://github.com/paritytech/substrate"151branch = "polkadot-v0.9.36"152153[dependencies.sp-timestamp]154git = "https://github.com/paritytech/substrate"155branch = "polkadot-v0.9.36"156157[dependencies.sp-transaction-pool]158git = "https://github.com/paritytech/substrate"159branch = "polkadot-v0.9.36"160161[dependencies.sp-trie]162git = "https://github.com/paritytech/substrate"163branch = "polkadot-v0.9.36"164165[dependencies.substrate-frame-rpc-system]166git = "https://github.com/paritytech/substrate"167branch = "polkadot-v0.9.36"168169[dependencies.sc-network]170git = "https://github.com/paritytech/substrate"171branch = "polkadot-v0.9.36"172173[dependencies.serde]174features = ['derive']175version = '1.0.130'176177[dependencies.serde_json]178version = '1.0.68'179180[dependencies.sc-consensus-manual-seal]181git = "https://github.com/paritytech/substrate"182branch = "polkadot-v0.9.36"183184################################################################################185# Cumulus dependencies186187[dependencies.cumulus-client-consensus-aura]188git = "https://github.com/paritytech/cumulus"189branch = "polkadot-v0.9.36"190191[dependencies.cumulus-client-consensus-common]192git = "https://github.com/paritytech/cumulus"193branch = "polkadot-v0.9.36"194195[dependencies.cumulus-client-collator]196git = "https://github.com/paritytech/cumulus"197branch = "polkadot-v0.9.36"198199[dependencies.cumulus-client-cli]200git = "https://github.com/paritytech/cumulus"201branch = "polkadot-v0.9.36"202203[dependencies.cumulus-client-network]204git = "https://github.com/paritytech/cumulus"205branch = "polkadot-v0.9.36"206207[dependencies.cumulus-primitives-core]208git = "https://github.com/paritytech/cumulus"209branch = "polkadot-v0.9.36"210211[dependencies.cumulus-primitives-parachain-inherent]212git = "https://github.com/paritytech/cumulus"213branch = "polkadot-v0.9.36"214215[dependencies.cumulus-client-service]216git = "https://github.com/paritytech/cumulus"217branch = "polkadot-v0.9.36"218219[dependencies.cumulus-relay-chain-interface]220git = "https://github.com/paritytech/cumulus"221branch = "polkadot-v0.9.36"222223[dependencies.cumulus-relay-chain-inprocess-interface]224git = "https://github.com/paritytech/cumulus"225branch = "polkadot-v0.9.36"226227[dependencies.cumulus-relay-chain-minimal-node]228git = "https://github.com/paritytech/cumulus"229branch = "polkadot-v0.9.36"230231################################################################################232# Polkadot dependencies233[dependencies.polkadot-primitives]234git = "https://github.com/paritytech/polkadot"235branch = "release-v0.9.36"236237[dependencies.polkadot-service]238git = "https://github.com/paritytech/polkadot"239branch = "release-v0.9.36"240241[dependencies.polkadot-cli]242git = "https://github.com/paritytech/polkadot"243branch = "release-v0.9.36"244245[dependencies.polkadot-test-service]246git = "https://github.com/paritytech/polkadot"247branch = "release-v0.9.36"248249[dependencies.polkadot-parachain]250git = "https://github.com/paritytech/polkadot"251branch = "release-v0.9.36"252253254################################################################################255# Local dependencies256257[dependencies.up-common]258path = "../../primitives/common"259260[dependencies.unique-runtime]261path = '../../runtime/unique'262optional = true263264[dependencies.quartz-runtime]265path = '../../runtime/quartz'266optional = true267268[dependencies.opal-runtime]269path = '../../runtime/opal'270optional = true271272[dependencies.up-data-structs]273path = "../../primitives/data-structs"274default-features = false275276[dependencies.up-rpc]277path = "../../primitives/rpc"278279[dependencies.pallet-transaction-payment-rpc-runtime-api]280git = "https://github.com/paritytech/substrate"281branch = "polkadot-v0.9.36"282283################################################################################284# Package285286[package]287authors = ['Unique Network <support@uniquenetwork.io>']288build = 'build.rs'289description = 'Unique Node'290edition = '2021'291homepage = 'https://unique.network'292license = 'GPLv3'293name = 'unique-node'294repository = 'https://github.com/UniqueNetwork/unique-chain'295version.workspace = true296297[[bin]]298name = 'unique-collator'299path = "src/main.rs"300301[package.metadata.docs.rs]302targets = ['x86_64-unknown-linux-gnu']303304[dependencies]305futures = '0.3.17'306log = '0.4.16'307flexi_logger = "0.24.2"308parking_lot = '0.12.1'309clap = "4.0.9"310jsonrpsee = { version = "0.16.2", features = ["server", "macros"] }311tokio = { version = "1.19.2", features = ["time"] }312313fc-rpc-core = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }314fc-consensus = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }315fc-mapping-sync = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }316fc-rpc = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }317fc-db = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }318fp-rpc = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }319pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }320321unique-rpc = { default-features = false, path = "../rpc" }322uc-rpc = { default-features = false, path = "../../client/rpc" }323app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }324rmrk-rpc = { path = "../../primitives/rmrk-rpc" }325up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }326327[features]328default = ["opal-runtime"]329runtime-benchmarks = [330    'unique-runtime?/runtime-benchmarks',331    'quartz-runtime?/runtime-benchmarks',332    'opal-runtime/runtime-benchmarks',333    'polkadot-service/runtime-benchmarks',334    'polkadot-cli/runtime-benchmarks',335    'sc-service/runtime-benchmarks',336]337try-runtime = [338    'unique-runtime?/try-runtime',339    'quartz-runtime?/try-runtime',340    'opal-runtime?/try-runtime',341    'try-runtime-cli/try-runtime',342]343sapphire-runtime = ['quartz-runtime', 'quartz-runtime/become-sapphire']344pov-estimate = [345    'unique-runtime?/pov-estimate',346    'quartz-runtime?/pov-estimate',347    'opal-runtime/pov-estimate',348    'uc-rpc/pov-estimate',349    'unique-rpc/pov-estimate',350]
modifiedruntime/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 = []
modifiedruntime/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;
 }
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -182,6 +182,7 @@
 ]
 limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
 quartz-runtime = ['refungible', 'app-promotion', 'collator-selection', 'foreign-assets']
+become-sapphire = []
 pov-estimate = []
 
 refungible = []
modifiedruntime/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;
 }
modifiedtests/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,