-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Control Tool for Paseo and Westend (#1340)
* update runtimes and fix pre-image * add workflow to check build * remove id * install nix * install rust step * ws * update urls * fix scripts * ws
- Loading branch information
1 parent
2d2ac78
commit c7ae26f
Showing
12 changed files
with
131 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: control | ||
|
||
on: | ||
push: | ||
paths: | ||
- "control/**" | ||
branches: | ||
- main | ||
pull_request: | ||
paths: | ||
- "control/**" | ||
|
||
jobs: | ||
control: | ||
runs-on: snowbridge-runner | ||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUST_BACKTRACE: 1 | ||
RUSTFLAGS: -C debuginfo=1 | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo- | ||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Rust | ||
run: | | ||
nix develop -c sh -c ' | ||
echo "Installing Rust nightly toolchain" | ||
rustup default stable | ||
rustup target add wasm32-unknown-unknown | ||
rustup component add rust-src | ||
rustup install --profile minimal $RUST_NIGHTLY_VERSION | ||
rustup component add --toolchain $RUST_NIGHTLY_VERSION rustfmt | ||
rustup show | ||
' | ||
- name: Build Paseo | ||
run: | | ||
nix develop -c sh -c 'cd control && cargo build --features paseo' | ||
- name: Build Polkadot | ||
run: | | ||
nix develop -c sh -c 'cd control && cargo build --features polkadot' | ||
- name: Build Westend | ||
run: | | ||
nix develop -c sh -c 'cd control && cargo build --features westend' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1.57 KB
(100%)
control/runtimes/bridge-hub-westend/bridge-hub-metadata.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
networks=( | ||
polkadot | ||
westend | ||
paseo | ||
) | ||
|
||
for network in ${networks[@]}; do | ||
echo "Updating network $network" | ||
subxt metadata --url wss://$network-rpc.dwellir.com -f bytes -o runtimes/$network/polkadot-metadata.bin | ||
subxt metadata --url wss://asset-hub-$network-rpc.dwellir.com -f bytes -o runtimes/asset-hub-$network/asset-hub-metadata.bin | ||
|
||
bh_metadata=runtimes/bridge-hub-$network/bridge-hub-metadata.bin | ||
bh_url=wss://bridge-hub-$network-rpc.dwellir.com | ||
if [ "$network" = "paseo" ]; then | ||
bh_url=wss://bridge-hub-paseo.dotters.network | ||
fi | ||
|
||
subxt metadata --url $bh_url -f bytes -o $bh_metadata | ||
done | ||
|