git.delta.rocks / unique-network / refs/commits / 88e36460f932

difftreelog

fix rename variable

Alexander Aksenov2022-08-22parent: #93a0bf6.patch.diff
in: master

9 files changed

modified.docker/Dockerfile-parachain-upgrade-datadiffbeforeafterboth
--- a/.docker/Dockerfile-parachain-upgrade-data
+++ b/.docker/Dockerfile-parachain-upgrade-data
@@ -108,9 +108,9 @@
 COPY --from=builder-polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
 COPY --from=builder-polkadot /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm
 
-ARG FORK_FROM=
-ENV FORK_FROM=$FORK_FROM
-CMD export NVM_DIR="$HOME/.nvm" PATH="$PATH:/chainql/target/release" FORK_FROM && \
+ARG REPLICA_FROM=
+ENV REPLICA_FROM=$REPLICA_FROM
+CMD export NVM_DIR="$HOME/.nvm" PATH="$PATH:/chainql/target/release" REPLICA_FROM && \
     [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
     cd /polkadot-launch && \
     yarn start launch-config.json --test-upgrade-parachains
modified.docker/Dockerfile-try-runtimediffbeforeafterboth
--- a/.docker/Dockerfile-try-runtime
+++ b/.docker/Dockerfile-try-runtime
@@ -34,17 +34,17 @@
 
 ARG PROFILE=release
 ARG FEATURE=
-ARG FORK_FROM=
+ARG REPLICA_FROM=
 ENV FEATURE $FEATURE
-ENV FORK_FROM $FORK_FROM
+ENV REPLICA_FROM $REPLICA_FROM
 
 COPY . /unique_parachain
 WORKDIR /unique_parachain
 
 
 RUN echo "Requested features: $FEATURE\n" && \
-    echo "Fork from: $FORK_FROM\n" && \
+    echo "Fork from: $REPLICA_FROM\n" && \
     cargo build --features=$FEATURE --release
     
 
-CMD cargo run --features=$FEATURE --release -- try-runtime on-runtime-upgrade live --uri $FORK_FROM
+CMD cargo run --features=$FEATURE --release -- try-runtime on-runtime-upgrade live --uri $REPLICA_FROM
modified.docker/docker-compose.tmp-forkless-data.j2diffbeforeafterboth
--- a/.docker/docker-compose.tmp-forkless-data.j2
+++ b/.docker/docker-compose.tmp-forkless-data.j2
@@ -12,7 +12,7 @@
         - "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}"
         - "MAINNET_TAG={{ MAINNET_TAG }}"
         - "MAINNET_BRANCH={{ MAINNET_BRANCH }}"
-        - "FORK_FROM={{ FORK_FROM }}"
+        - "REPLICA_FROM={{ REPLICA_FROM }}"
       context: ../
       dockerfile: .docker/Dockerfile-parachain-upgrade-data
     image: node-parachain
modified.docker/docker-compose.try-runtime.j2diffbeforeafterboth
--- a/.docker/docker-compose.try-runtime.j2
+++ b/.docker/docker-compose.try-runtime.j2
@@ -6,5 +6,5 @@
       args:
         - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
         - "FEATURE={{ FEATURE }}"
-        - "FORK_FROM={{ FORK_FROM }}"
+        - "REPLICA_FROM={{ REPLICA_FROM }}"
 
modified.docker/forkless-config/launch-config-forkless-data.j2diffbeforeafterboth
--- a/.docker/forkless-config/launch-config-forkless-data.j2
+++ b/.docker/forkless-config/launch-config-forkless-data.j2
@@ -93,9 +93,9 @@
             "balance": "1000000000000000000000000",
             "chainRawInitializer": [
                 "chainql",
-                "--ext-str=FORK_FROM",
+                "--ext-str=REPLICA_FROM",
                 "--tla-code=rawSpec=import '${rawSpec}'",
-                "--tla-code=forkFrom=std.extVar('FORK_FROM')",
+                "--tla-code=forkFrom=std.extVar('REPLICA_FROM')",
                 "fork.jsonnet"
             ],
             "nodes": [
modified.envdiffbeforeafterboth
--- a/.env
+++ b/.env
@@ -7,6 +7,6 @@
 KUSAMA_MAINNET_BRANCH=release-v0.9.26
 QUARTZ_MAINNET_TAG=quartz-v924012-2
 
-OPAL_FORK_FROM=wss://eu-ws-opal.unique.network:443
-QUARTZ_FORK_FROM=wss://eu-ws-quartz.unique.network:443
-UNIQUE_FORK_FROM=wss://eu-ws.unique.network:443
+OPAL_REPLICA_FROM=wss://eu-ws-opal.unique.network:443
+QUARTZ_REPLICA_FROM=wss://eu-ws-quartz.unique.network:443
+UNIQUE_REPLICA_FROM=wss://eu-ws.unique.network:443
modified.github/workflows/codestyle.ymldiffbeforeafterboth
before · .github/workflows/codestyle.yml
1name: cargo fmt23on:4  pull_request:5    branches:6      - develop7    types:8      - opened9      - reopened10      - synchronize11      - ready_for_review1213concurrency: 14  group: ${{ github.workflow }}-${{ github.ref }}15  cancel-in-progress: true1617jobs:18  rustfmt:19    runs-on: self-hosted-ci2021    steps:22      - name: Skip if pull request is in Draft23        # `if: github.event.pull_request.draft == true` should be kept here, at24        # the step level, rather than at the job level. The latter is not25        # recommended because when the PR is moved from "Draft" to "Ready to26        # review" the workflow will immediately be passing (since it was skipped),27        # even though it hasn't actually ran, since it takes a few seconds for28        # the workflow to start. This is also disclosed in:29        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1730        # That scenario would open an opportunity for the check to be bypassed:31        # 1. Get your PR approved32        # 2. Move it to Draft33        # 3. Push whatever commits you want34        # 4. Move it to "Ready for review"; now the workflow is passing (it was35        #    skipped) and "Check reviews" is also passing (it won't be updated36        #    until the workflow is finished)37        if: github.event.pull_request.draft == true38        run: exit 13940      - uses: actions/checkout@v141      - name: Install latest nightly42        uses: actions-rs/toolchain@v143        with:44            toolchain: nightly45            default: true46            target: wasm32-unknown-unknown47            components: rustfmt, clippy48      - name: Run cargo fmt49        run: cargo fmt -- --check5051  clippy:52    if: ${{ false }}53    runs-on: self-hosted-ci54      55    steps:56      - name: Skip if pull request is in Draft57        # `if: github.event.pull_request.draft == true` should be kept here, at58        # the step level, rather than at the job level. The latter is not59        # recommended because when the PR is moved from "Draft" to "Ready to60        # review" the workflow will immediately be passing (since it was skipped),61        # even though it hasn't actually ran, since it takes a few seconds for62        # the workflow to start. This is also disclosed in:63        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1764        # That scenario would open an opportunity for the check to be bypassed:65        # 1. Get your PR approved66        # 2. Move it to Draft67        # 3. Push whatever commits you want68        # 4. Move it to "Ready for review"; now the workflow is passing (it was69        #    skipped) and "Check reviews" is also passing (it won't be updated70        #    until the workflow is finished)71        if: github.event.pull_request.draft == true72        run: exit 173        74      - uses: actions/checkout@v375      - name: Install substrate dependencies76        run: sudo apt-get install libssl-dev pkg-config libclang-dev clang77      - name: Install latest nightly78        uses: actions-rs/toolchain@v179        with:80            toolchain: nightly81            default: true82            target: wasm32-unknown-unknown83            components: rustfmt, clippy84      - name: Run cargo check85        run: cargo clippy -- -Dwarnings
after · .github/workflows/codestyle.yml
1name: cargo fmt23on:4  pull_request:5    branches:6      - develop7    types:8      - opened9      - reopened10      - synchronize11      - ready_for_review1213concurrency: 14  group: ${{ github.workflow }}-${{ github.ref }}15  cancel-in-progress: true1617jobs:18  rustfmt:19    runs-on: self-hosted-ci2021    steps:22      - name: Skip if pull request is in Draft23        # `if: github.event.pull_request.draft == true` should be kept here, at24        # the step level, rather than at the job level. The latter is not25        # recommended because when the PR is moved from "Draft" to "Ready to26        # review" the workflow will immediately be passing (since it was skipped),27        # even though it hasn't actually ran, since it takes a few seconds for28        # the workflow to start. This is also disclosed in:29        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1730        # That scenario would open an opportunity for the check to be bypassed:31        # 1. Get your PR approved32        # 2. Move it to Draft33        # 3. Push whatever commits you want34        # 4. Move it to "Ready for review"; now the workflow is passing (it was35        #    skipped) and "Check reviews" is also passing (it won't be updated36        #    until the workflow is finished)37        if: github.event.pull_request.draft == true38        run: exit 13940      - uses: actions/checkout@v341      - name: Install latest nightly42        uses: actions-rs/toolchain@v143        with:44            toolchain: nightly45            default: true46            target: wasm32-unknown-unknown47            components: rustfmt, clippy 48      - name: Run cargo fmt49        run: cargo fmt -- --check   # In that mode it returns only exit code.50      - name: Cargo fmt state51        if: success()52        run: echo "Nothing to do. Cargo fmt returned exit code 0."535455  clippy:56    if: ${{ false }}57    runs-on: self-hosted-ci58      59    steps:60      - name: Skip if pull request is in Draft61        # `if: github.event.pull_request.draft == true` should be kept here, at62        # the step level, rather than at the job level. The latter is not63        # recommended because when the PR is moved from "Draft" to "Ready to64        # review" the workflow will immediately be passing (since it was skipped),65        # even though it hasn't actually ran, since it takes a few seconds for66        # the workflow to start. This is also disclosed in:67        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1768        # That scenario would open an opportunity for the check to be bypassed:69        # 1. Get your PR approved70        # 2. Move it to Draft71        # 3. Push whatever commits you want72        # 4. Move it to "Ready for review"; now the workflow is passing (it was73        #    skipped) and "Check reviews" is also passing (it won't be updated74        #    until the workflow is finished)75        if: github.event.pull_request.draft == true76        run: exit 177        78      - uses: actions/checkout@v379      - name: Install substrate dependencies80        run: sudo apt-get install libssl-dev pkg-config libclang-dev clang81      - name: Install latest nightly82        uses: actions-rs/toolchain@v183        with:84            toolchain: nightly85            default: true86            target: wasm32-unknown-unknown87            components: rustfmt, clippy88      - name: Run cargo check89        run: cargo clippy -- -Dwarnings
modified.github/workflows/forkless-update-data.ymldiffbeforeafterboth
--- a/.github/workflows/forkless-update-data.yml
+++ b/.github/workflows/forkless-update-data.yml
@@ -52,9 +52,9 @@
         id: create_matrix
         with:
           matrix: |
-            network {opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}, fork_from_address {${{ env.OPAL_FORK_FROM }}}
-            network {quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}, fork_from_address {${{ env.QUARTZ_FORK_FROM }}}
-            network {unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}, fork_from_address {${{ env.UNIQUE_FORK_FROM }}}
+            network {opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}
+            network {quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}
+            network {unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}
 
 
 
@@ -120,7 +120,7 @@
             FEATURE=${{ matrix.features }}
             RUNTIME=${{ matrix.runtime }}
             BRANCH=${{ github.head_ref }}
-            FORK_FROM=${{ matrix.fork_from_address }}
+            REPLICA_FROM=${{ matrix.replica_from_address }}
 
       - name: Show build configuration
         run: cat .docker/docker-compose.${{ matrix.network }}.yml
modified.github/workflows/try-runtime.ymldiffbeforeafterboth
--- a/.github/workflows/try-runtime.yml
+++ b/.github/workflows/try-runtime.yml
@@ -38,13 +38,13 @@
         include:
           - network: opal
             features: try-runtime,opal-runtime
-            fork_from_address: wss://eu-ws-opal.unique.network:443
+            replica_from_address: wss://eu-ws-opal.unique.network:443
           - network: quartz
             features: try-runtime,quartz-runtime
-            fork_from_address: wss://eu-ws-quartz.unique.network:443
+            replica_from_address: wss://eu-ws-quartz.unique.network:443
           - network: unique
             features: try-runtime,unique-runtime
-            fork_from_address: wss://eu-ws.unique.network:443
+            replica_from_address: wss://eu-ws.unique.network:443
 
     steps:
       - name: Skip if pull request is in Draft
@@ -85,7 +85,7 @@
           variables: |
             RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
             FEATURE=${{ matrix.features }}
-            FORK_FROM=${{ matrix.fork_from_address }}
+            REPLICA_FROM=${{ matrix.replica_from_address }}
 
       - name: Show build configuration
         run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml