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.j2diffbeforeafterboth1{2 "relaychain": {3 "bin": "/polkadot/target/release/polkadot",4 "upgradeBin": "/polkadot/target/release/polkadot",5 "upgradeWasm": "/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm",6 "chain": "westend-local",7 "nodes": [8 {9 "name": "alice",10 "wsPort": 9844,11 "rpcPort": 9843,12 "port": 30444,13 "flags": [14 "-lparachain::candidate_validation=debug",15 "-lxcm=trace",16 "--rpc-cors=all",17 "--unsafe-rpc-external",18 "--unsafe-ws-external"19 ]20 },21 {22 "name": "bob",23 "wsPort": 9855,24 "rpcPort": 9854,25 "port": 30555,26 "flags": [27 "-lparachain::candidate_validation=debug",28 "-lxcm=trace",29 "--rpc-cors=all",30 "--unsafe-rpc-external",31 "--unsafe-ws-external"32 ]33 },34 {35 "name": "charlie",36 "wsPort": 9866,37 "rpcPort": 9865,38 "port": 30666,39 "flags": [40 "-lparachain::candidate_validation=debug",41 "-lxcm=trace",42 "--rpc-cors=all",43 "--unsafe-rpc-external",44 "--unsafe-ws-external"45 ]46 },47 {48 "name": "dave",49 "wsPort": 9877,50 "rpcPort": 9876,51 "port": 30777,52 "flags": [53 "-lparachain::candidate_validation=debug",54 "-lxcm=trace",55 "--rpc-cors=all",56 "--unsafe-rpc-external",57 "--unsafe-ws-external"58 ]59 },60 {61 "name": "eve",62 "wsPort": 9888,63 "rpcPort": 9887,64 "port": 30888,65 "flags": [66 "-lparachain::candidate_validation=debug",67 "-lxcm=trace",68 "--rpc-cors=all",69 "--unsafe-rpc-external",70 "--unsafe-ws-external"71 ]72 }73 ],74 "genesis": {75 "runtime": {76 "runtime_genesis_config": {77 "parachainsConfiguration": {78 "config": {79 "validation_upgrade_frequency": 1,80 "validation_upgrade_delay": 181 }82 }83 }84 }85 }86 },87 "parachains": [88 {89 "bin": "/unique-chain/target/release/unique-collator",90 "upgradeBin": "/unique-chain/target/release/unique-collator",91 "upgradeWasm": "/unique-chain/target/release/wbuild/{{ FEATURE }}/{{ RUNTIME }}_runtime.compact.compressed.wasm",92 "id": "1000",93 "balance": "1000000000000000000000000",94 "chainRawInitializer": [95 "chainql",96 "--ext-str=FORK_FROM",97 "--tla-code=rawSpec=import '${rawSpec}'",98 "--tla-code=forkFrom=std.extVar('FORK_FROM')",99 "fork.jsonnet"100 ],101 "nodes": [102 {103 "port": 31200,104 "wsPort": 9944,105 "rpcPort": 9933,106 "name": "alice",107 "flags": [108 "--rpc-cors=all",109 "--unsafe-rpc-external",110 "--unsafe-ws-external",111 "-lxcm=trace"112 ]113 },114 {115 "port": 31201,116 "wsPort": 9945,117 "rpcPort": 9934,118 "name": "bob",119 "flags": [120 "--rpc-cors=all",121 "--unsafe-rpc-external",122 "--unsafe-ws-external",123 "-lxcm=trace"124 ]125 }126 ]127 }128 ],129 "simpleParachains": [],130 "hrmpChannels": [],131 "finalization": false132}1{2 "relaychain": {3 "bin": "/polkadot/target/release/polkadot",4 "upgradeBin": "/polkadot/target/release/polkadot",5 "upgradeWasm": "/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm",6 "chain": "westend-local",7 "nodes": [8 {9 "name": "alice",10 "wsPort": 9844,11 "rpcPort": 9843,12 "port": 30444,13 "flags": [14 "-lparachain::candidate_validation=debug",15 "-lxcm=trace",16 "--rpc-cors=all",17 "--unsafe-rpc-external",18 "--unsafe-ws-external"19 ]20 },21 {22 "name": "bob",23 "wsPort": 9855,24 "rpcPort": 9854,25 "port": 30555,26 "flags": [27 "-lparachain::candidate_validation=debug",28 "-lxcm=trace",29 "--rpc-cors=all",30 "--unsafe-rpc-external",31 "--unsafe-ws-external"32 ]33 },34 {35 "name": "charlie",36 "wsPort": 9866,37 "rpcPort": 9865,38 "port": 30666,39 "flags": [40 "-lparachain::candidate_validation=debug",41 "-lxcm=trace",42 "--rpc-cors=all",43 "--unsafe-rpc-external",44 "--unsafe-ws-external"45 ]46 },47 {48 "name": "dave",49 "wsPort": 9877,50 "rpcPort": 9876,51 "port": 30777,52 "flags": [53 "-lparachain::candidate_validation=debug",54 "-lxcm=trace",55 "--rpc-cors=all",56 "--unsafe-rpc-external",57 "--unsafe-ws-external"58 ]59 },60 {61 "name": "eve",62 "wsPort": 9888,63 "rpcPort": 9887,64 "port": 30888,65 "flags": [66 "-lparachain::candidate_validation=debug",67 "-lxcm=trace",68 "--rpc-cors=all",69 "--unsafe-rpc-external",70 "--unsafe-ws-external"71 ]72 }73 ],74 "genesis": {75 "runtime": {76 "runtime_genesis_config": {77 "parachainsConfiguration": {78 "config": {79 "validation_upgrade_frequency": 1,80 "validation_upgrade_delay": 181 }82 }83 }84 }85 }86 },87 "parachains": [88 {89 "bin": "/unique-chain/target/release/unique-collator",90 "upgradeBin": "/unique-chain/target/release/unique-collator",91 "upgradeWasm": "/unique-chain/target/release/wbuild/{{ FEATURE }}/{{ RUNTIME }}_runtime.compact.compressed.wasm",92 "id": "1000",93 "balance": "1000000000000000000000000",94 "chainRawInitializer": [95 "chainql",96 "--ext-str=REPLICA_FROM",97 "--tla-code=rawSpec=import '${rawSpec}'",98 "--tla-code=forkFrom=std.extVar('REPLICA_FROM')",99 "fork.jsonnet"100 ],101 "nodes": [102 {103 "port": 31200,104 "wsPort": 9944,105 "rpcPort": 9933,106 "name": "alice",107 "flags": [108 "--rpc-cors=all",109 "--unsafe-rpc-external",110 "--unsafe-ws-external",111 "-lxcm=trace"112 ]113 },114 {115 "port": 31201,116 "wsPort": 9945,117 "rpcPort": 9934,118 "name": "bob",119 "flags": [120 "--rpc-cors=all",121 "--unsafe-rpc-external",122 "--unsafe-ws-external",123 "-lxcm=trace"124 ]125 }126 ]127 }128 ],129 "simpleParachains": [],130 "hrmpChannels": [],131 "finalization": false132}.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.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