-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vincent/token-bucket
- Loading branch information
Showing
46 changed files
with
596 additions
and
432 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,23 @@ | ||
"Component: Docs": | ||
- changed-files: | ||
- any-glob-to-any-file: docs/** | ||
|
||
"Component: Relayer": | ||
- changed-files: | ||
- any-glob-to-any-file: relayer/** | ||
|
||
"Component: Web": | ||
- changed-files: | ||
- any-glob-to-any-file: web/** | ||
|
||
"Component: Smoke Tests": | ||
- changed-files: | ||
- any-glob-to-any-file: smoketest/** | ||
|
||
"Component: Control Tool": | ||
- changed-files: | ||
- any-glob-to-any-file: control/** | ||
|
||
"Component: Ethereum": | ||
- changed-files: | ||
- any-glob-to-any-file: contracts/** |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: label PRs | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v5 | ||
with: | ||
sync-labels: true |
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 |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
run: > | ||
go install github.com/magefile/[email protected] && | ||
go install github.com/ferranbt/fastssz/[email protected] && | ||
go install github.com/ethereum/go-ethereum/cmd/abigen@v1.13.15 | ||
go install github.com/ethereum/go-ethereum/cmd/abigen@v1.14.8 | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
@@ -95,6 +95,16 @@ jobs: | |
id: build_changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
with: | ||
configurationJson: | | ||
{ | ||
"template": "#{{CHANGELOG}}\n\n<details>\n</details>", | ||
"categories": [ | ||
{ | ||
"title": "## Relayer Changes", | ||
"labels": ["Component: Relayer"] | ||
} | ||
] | ||
} | ||
fromTag: ${{ steps.new_version.outputs.from_tag }} | ||
toTag: ${{ steps.create_tag.outputs.tag }} | ||
|
||
|
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
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 not shown.
Binary file modified
BIN
+46.2 KB
(110%)
control/runtimes/bridge-hub-polkadot/bridge-hub-metadata.bin
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.
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 | ||
|
Oops, something went wrong.