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.ymldiffbeforeafterboth34 uses: CertainLach/create-matrix-action@v334 uses: CertainLach/create-matrix-action@v335 id: create_matrix35 id: create_matrix36 with:36 with:37 matrix: |37 matrix: |38 network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}}38 network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}}39 network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}, relay_branch {${{ env.POLKADOT_MAINNET_BRANCH }}}39 network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}, relay_branch {${{ env.POLKADOT_MAINNET_BRANCH }}}40 network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}}40 network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}}41 network {sapphire}, wasm_name {opal}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, replica_from_address {${{ env.SAPPHIRE_REPLICA_FROM }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}41 network {sapphire}, wasm_name {quartz}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, replica_from_address {${{ env.SAPPHIRE_REPLICA_FROM }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}424243 forkless-update-data:43 forkless-update-data:44 needs: execution-marix44 needs: execution-marix70 with:70 with:71 template: .docker/docker-compose.tmp-forkless-data.j271 template: .docker/docker-compose.tmp-forkless-data.j272 output_file: .docker/docker-compose-forkless-data.${{ matrix.network }}.yml72 output_file: .docker/docker-compose-forkless-data.${{ matrix.network }}.yml73 variables: |73 variables: |74 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git74 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git75 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}75 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}76 POLKADOT_BUILD_BRANCH=${{ matrix.relay_branch }}76 POLKADOT_BUILD_BRANCH=${{ matrix.relay_branch }}77 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 77 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}78 # POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}78 # POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}79 # MAINNET_TAG=${{ matrix.mainnet_tag }}79 # MAINNET_TAG=${{ matrix.mainnet_tag }}80 MAINNET_BRANCH=${{ matrix.mainnet_branch }}80 MAINNET_BRANCH=${{ matrix.mainnet_branch }}81 NETWORK=${{ matrix.network }}81 NETWORK=${{ matrix.network }}82 # BRANCH=${{ github.head_ref }}82 # BRANCH=${{ github.head_ref }}83 REPLICA_FROM=${{ matrix.replica_from_address }}83 REPLICA_FROM=${{ matrix.replica_from_address }}84 WASM_NAME=${{ matrix.wasm_name }}84 WASM_NAME=${{ matrix.wasm_name }}858586 - name: Show build configuration86 - name: Show build configuration87 run: cat .docker/docker-compose-forkless-data.${{ matrix.network }}.yml87 run: cat .docker/docker-compose-forkless-data.${{ matrix.network }}.yml.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth33 uses: CertainLach/create-matrix-action@v333 uses: CertainLach/create-matrix-action@v334 id: create_matrix34 id: create_matrix35 with:35 with:36 matrix: |36 matrix: |37 network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}}37 network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}}38 network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}, relay_branch {${{ env.POLKADOT_MAINNET_BRANCH }}}38 network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}, relay_branch {${{ env.POLKADOT_MAINNET_BRANCH }}}39 network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}}39 network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}}40 network {sapphire}, wasm_name {opal}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}40 network {sapphire}, wasm_name {quartz}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}4141424243 forkless-update-nodata:43 forkless-update-nodata:72 with:72 with:73 template: .docker/docker-compose.tmp-forkless-nodata.j273 template: .docker/docker-compose.tmp-forkless-nodata.j274 output_file: .docker/docker-compose.${{ matrix.network }}.yml74 output_file: .docker/docker-compose.${{ matrix.network }}.yml75 variables: |75 variables: |76 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git76 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git77 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}77 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}78 POLKADOT_BUILD_BRANCH=${{ matrix.relay_branch }}78 POLKADOT_BUILD_BRANCH=${{ matrix.relay_branch }}79 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 79 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}80 # POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}80 # POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}81 # MAINNET_TAG=${{ matrix.mainnet_tag }}81 # MAINNET_TAG=${{ matrix.mainnet_tag }}82 MAINNET_BRANCH=${{ matrix.mainnet_branch }}82 MAINNET_BRANCH=${{ matrix.mainnet_branch }}83 NETWORK=${{ matrix.network }}83 NETWORK=${{ matrix.network }}84 # BRANCH=${{ github.head_ref }}84 # BRANCH=${{ github.head_ref }}85 WASM_NAME=${{ matrix.wasm_name }}85 WASM_NAME=${{ matrix.wasm_name }}868687 - name: Show build configuration87 - name: Show build configuration88 run: cat .docker/docker-compose.${{ matrix.network }}.yml88 run: cat .docker/docker-compose.${{ matrix.network }}.yml.github/workflows/integration-tests.ymldiffbeforeafterboth34 uses: fabiocaccamo/create-matrix-action@v234 uses: fabiocaccamo/create-matrix-action@v235 id: create_matrix35 id: create_matrix36 with:36 with:37 matrix: |37 matrix: |38 network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}38 network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}39 network {sapphire}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}39 network {sapphire}, wasm_name {quartz}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}40 network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}40 network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}41 network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}41 network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}42 4243 parallel-test:43 parallel-test:44 needs: nodes-execution-matrix44 needs: nodes-execution-matrix73 with:73 with:74 template: .docker/docker-compose.tmp-node.j274 template: .docker/docker-compose.tmp-node.j275 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml75 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml76 variables: |76 variables: |77 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git77 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git78 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}78 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}79 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}79 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}80 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 80 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}81 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}81 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}82 MAINNET_TAG=${{ matrix.mainnet_tag }}82 MAINNET_TAG=${{ matrix.mainnet_tag }}83 MAINNET_BRANCH=${{ matrix.mainnet_branch }}83 MAINNET_BRANCH=${{ matrix.mainnet_branch }}84 NETWORK=${{ matrix.network }}84 NETWORK=${{ matrix.network }}85 BRANCH=${{ github.head_ref }}85 BRANCH=${{ github.head_ref }}86 WASM_NAME=${{ matrix.wasm_name }}86 WASM_NAME=${{ matrix.wasm_name }}87 8788 - name: Show build configuration88 - name: Show build configuration89 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml89 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml222 with:222 with:223 template: .docker/docker-compose.tmp-node.j2223 template: .docker/docker-compose.tmp-node.j2224 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml224 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml225 variables: |225 variables: |226 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git226 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git227 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}227 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}228 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}228 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}229 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 229 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}230 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}230 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}231 MAINNET_TAG=${{ matrix.mainnet_tag }}231 MAINNET_TAG=${{ matrix.mainnet_tag }}232 MAINNET_BRANCH=${{ matrix.mainnet_branch }}232 MAINNET_BRANCH=${{ matrix.mainnet_branch }}233 NETWORK=${{ matrix.network }}233 NETWORK=${{ matrix.network }}234 BRANCH=${{ github.head_ref }}234 BRANCH=${{ github.head_ref }}235 WASM_NAME=${{ matrix.wasm_name }}235 WASM_NAME=${{ matrix.wasm_name }}236 236237 - name: Show build configuration237 - name: Show build configuration238 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml238 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml.github/workflows/node-only-update.ymldiffbeforeafterboth36 uses: CertainLach/create-matrix-action@v336 uses: CertainLach/create-matrix-action@v337 id: create_matrix37 id: create_matrix38 with:38 with:39 matrix: |39 matrix: |40 network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}}40 network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}}41 network {sapphire}, wasm_name {opal}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}41 network {sapphire}, wasm_name {quartz}, mainnet_branch {${{ env.SAPPHIRE_MAINNET_BRANCH }}}, relay_branch {${{ env.UNIQUEEAST_MAINNET_BRANCH }}}42 network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}}42 network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}}43 network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}, relay_branch {${{ env.POLKADOT_MAINNET_BRANCH }}}43 network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}, relay_branch {${{ env.POLKADOT_MAINNET_BRANCH }}}4444454546 nodes-only-update:46 nodes-only-update:204204205 - name: Send SIGUSR1 to polkadot-launch process205 - name: Send SIGUSR1 to polkadot-launch process206 if: success() || failure()206 if: success() || failure()207 run: |207 run: |208 #Get PID of polkadot-launch208 #Get PID of polkadot-launch209 ContainerID=$(docker ps -aqf "name=node-parachain")209 ContainerID=$(docker ps -aqf "name=node-parachain")210 PID=$(docker exec node-parachain pidof 'polkadot-launch')210 PID=$(docker exec node-parachain pidof 'polkadot-launch')211 sleep 30s211 sleep 30s212 echo -e "\n"212 echo -e "\n"213 echo -e "Restart polkadot-launch process: $PID\n"213 echo -e "Restart polkadot-launch process: $PID\n"214 docker exec node-parachain kill -SIGUSR1 ${PID}214 docker exec node-parachain kill -SIGUSR1 ${PID}215 echo "SIGUSR1 sent to Polkadot-launch PID: $PID"215 echo "SIGUSR1 sent to Polkadot-launch PID: $PID"216 sleep 60s216 sleep 60s217 echo -e "Show logs of node-parachain container.\n" 217 echo -e "Show logs of node-parachain container.\n"218 docker logs ${ContainerID}218 docker logs ${ContainerID}219219220 - name: Get chain logs in case of docker image crashed after Polkadot Launch restart220 - name: Get chain logs in case of docker image crashed after Polkadot Launch restart221 if: failure() # run this step only at failure221 if: failure() # run this step only at failure.github/workflows/try-runtime.ymldiffbeforeafterboth32 uses: CertainLach/create-matrix-action@v332 uses: CertainLach/create-matrix-action@v333 id: create_matrix33 id: create_matrix34 with:34 with:35 matrix: |35 matrix: |36 network {opal}, wasm_name {opal}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}36 network {opal}, wasm_name {opal}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}37 network {sapphire}, wasm_name {opal}, replica_from_address {${{ env.SAPPHIRE_REPLICA_FROM }}}37 network {sapphire}, wasm_name {quartz}, replica_from_address {${{ env.SAPPHIRE_REPLICA_FROM }}}38 network {quartz}, wasm_name {quartz}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}38 network {quartz}, wasm_name {quartz}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}39 network {unique}, wasm_name {unique}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}39 network {unique}, wasm_name {unique}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}404041 try-runtime:41 try-runtime:42 needs: prepare-execution-marix42 needs: prepare-execution-marixnode/cli/Cargo.tomldiffbeforeafterboth340 'opal-runtime?/try-runtime',340 'opal-runtime?/try-runtime',341 'try-runtime-cli/try-runtime',341 'try-runtime-cli/try-runtime',342]342]343sapphire-runtime = ['opal-runtime', 'opal-runtime/become-sapphire']343sapphire-runtime = ['quartz-runtime', 'quartz-runtime/become-sapphire']344pov-estimate = [344pov-estimate = [345 'unique-runtime?/pov-estimate',345 'unique-runtime?/pov-estimate',346 'quartz-runtime?/pov-estimate',346 'quartz-runtime?/pov-estimate',runtime/opal/Cargo.tomldiffbeforeafterboth196 'foreign-assets',196 'foreign-assets',197 'pallet-test-utils',197 'pallet-test-utils',198]198]199become-sapphire = []200pov-estimate = []199pov-estimate = []201200202refungible = []201refungible = []runtime/opal/src/lib.rsdiffbeforeafterboth444445pub use runtime_common::*;45pub use runtime_common::*;464647#[cfg(feature = "become-sapphire")]48pub const RUNTIME_NAME: &str = "sapphire";49#[cfg(feature = "become-sapphire")]50pub const TOKEN_SYMBOL: &str = "QTZ";5152#[cfg(not(feature = "become-sapphire"))]53pub const RUNTIME_NAME: &str = "opal";47pub const RUNTIME_NAME: &str = "opal";54#[cfg(not(feature = "become-sapphire"))]55pub const TOKEN_SYMBOL: &str = "OPL";48pub const TOKEN_SYMBOL: &str = "OPL";564957/// This runtime version.50/// This runtime version.66 state_version: 0,59 state_version: 0,67};60};686169parameter_types! {62parameter_types! {70 pub const Version: RuntimeVersion = VERSION;63 pub const Version: RuntimeVersion = VERSION;71}72#[cfg(feature = "become-sapphire")]73parameter_types! {74 pub const SS58Prefix: u16 = 8883;64 pub const SS58Prefix: u16 = 42;75 pub const ChainId: u64 = 8883;76}7778#[cfg(not(feature = "become-sapphire"))]79parameter_types! {80 pub const SS58Prefix: u16 = 42;81 pub const ChainId: u64 = 8882;65 pub const ChainId: u64 = 8882;82}66}836784construct_runtime!(opal);68construct_runtime!(opal);8569runtime/quartz/Cargo.tomldiffbeforeafterboth182]182]183limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']183limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']184quartz-runtime = ['refungible', 'app-promotion', 'collator-selection', 'foreign-assets']184quartz-runtime = ['refungible', 'app-promotion', 'collator-selection', 'foreign-assets']185become-sapphire = []185pov-estimate = []186pov-estimate = []186187187refungible = []188refungible = []runtime/quartz/src/lib.rsdiffbeforeafterboth444445pub use runtime_common::*;45pub use runtime_common::*;464647#[cfg(feature = "become-sapphire")]48pub const RUNTIME_NAME: &str = "sapphire";49#[cfg(not(feature = "become-sapphire"))]47pub const RUNTIME_NAME: &str = "quartz";50pub const RUNTIME_NAME: &str = "quartz";48pub const TOKEN_SYMBOL: &str = "QTZ";51pub const TOKEN_SYMBOL: &str = "QTZ";495259 state_version: 0,62 state_version: 0,60};63};616462parameter_types! {65parameter_types! {63 pub const Version: RuntimeVersion = VERSION;66 pub const Version: RuntimeVersion = VERSION;67}68#[cfg(feature = "become-sapphire")]69parameter_types! {64 pub const SS58Prefix: u8 = 255;70 pub const SS58Prefix: u16 = 8883;71 pub const ChainId: u64 = 8883;72}7374#[cfg(not(feature = "become-sapphire"))]75parameter_types! {76 pub const SS58Prefix: u8 = 255;65 pub const ChainId: u64 = 8881;77 pub const ChainId: u64 = 8881;66}78}677968construct_runtime!(quartz);80construct_runtime!(quartz);6981tests/src/pallet-presence.test.tsdiffbeforeafterboth69 const collatorSelection = ['authorship', 'session', 'collatorselection', 'identity'];69 const collatorSelection = ['authorship', 'session', 'collatorselection', 'identity'];70 const testUtils = 'testutils';70 const testUtils = 'testutils';717172 if (chain.eq('OPAL by UNIQUE') || chain.eq('SAPPHIRE by UNIQUE')) {72 if (chain.eq('OPAL by UNIQUE')) {73 requiredPallets.push(73 requiredPallets.push(74 refungible,74 refungible,75 foreignAssets,75 foreignAssets,76 appPromotion,76 appPromotion,77 testUtils,77 testUtils,78 ...rmrkPallets,78 ...rmrkPallets,79 );79 );80 } else if (chain.eq('QUARTZ by UNIQUE')) {80 } else if (chain.eq('QUARTZ by UNIQUE') || chain.eq('SAPPHIRE by UNIQUE')) {81 requiredPallets.push(81 requiredPallets.push(82 refungible,82 refungible,83 appPromotion,83 appPromotion,