difftreelog
fix rename variable
in: master
9 files changed
.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
.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
.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
.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 }}"
.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": [
.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
.github/workflows/codestyle.ymldiffbeforeafterboth--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -37,16 +37,20 @@
if: github.event.pull_request.draft == true
run: exit 1
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
target: wasm32-unknown-unknown
- components: rustfmt, clippy
+ components: rustfmt, clippy
- name: Run cargo fmt
- run: cargo fmt -- --check
+ run: cargo fmt -- --check # In that mode it returns only exit code.
+ - name: Cargo fmt state
+ if: success()
+ run: echo "Nothing to do. Cargo fmt returned exit code 0."
+
clippy:
if: ${{ false }}
.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
.github/workflows/try-runtime.ymldiffbeforeafterboth38 include:38 include:39 - network: opal39 - network: opal40 features: try-runtime,opal-runtime40 features: try-runtime,opal-runtime41 fork_from_address: wss://eu-ws-opal.unique.network:44341 replica_from_address: wss://eu-ws-opal.unique.network:44342 - network: quartz42 - network: quartz43 features: try-runtime,quartz-runtime43 features: try-runtime,quartz-runtime44 fork_from_address: wss://eu-ws-quartz.unique.network:44344 replica_from_address: wss://eu-ws-quartz.unique.network:44345 - network: unique45 - network: unique46 features: try-runtime,unique-runtime46 features: try-runtime,unique-runtime47 fork_from_address: wss://eu-ws.unique.network:44347 replica_from_address: wss://eu-ws.unique.network:443484849 steps:49 steps:50 - name: Skip if pull request is in Draft50 - name: Skip if pull request is in Draft82 with:82 with:83 template: .docker/docker-compose.try-runtime.j283 template: .docker/docker-compose.try-runtime.j284 output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml84 output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml85 variables: |85 variables: |86 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}86 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}87 FEATURE=${{ matrix.features }}87 FEATURE=${{ matrix.features }}88 FORK_FROM=${{ matrix.fork_from_address }}88 REPLICA_FROM=${{ matrix.replica_from_address }}898990 - name: Show build configuration90 - name: Show build configuration91 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml91 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml