From 80a427743d190783a0f8d10592f1bc2cae28de05 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 08:43:42 +0200 Subject: [PATCH 001/130] test e2e scripts in GA --- .github/workflows/parachain.yml | 494 +++++++++++++++++--------------- 1 file changed, 265 insertions(+), 229 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index e899e3fc35e6..a35fc6a9c1fb 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -40,238 +40,274 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} restore-keys: | ${{ runner.os }}-cargo- + - uses: actions/checkout@v2 + with: + name: snowfork/snowbridge + ref: main - uses: actions/setup-node@v4.0.0 with: node-version: "18.x" registry-url: "https://npm.pkg.github.com" scope: "@paritytech" - - name: setup rust toolchain - run: | - rustup target add wasm32-unknown-unknown - curl -LO https://github.com/paritytech/rustc-rv32e-toolchain/releases/download/v1.1.0/rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst - tar -I zstd -xf rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst - mv rve-nightly ~/.rustup/toolchains/ - rustup toolchain install nightly - rustup component add rustfmt --toolchain nightly - rustup show - - name: cargo check - run: cargo check --workspace --all-features - - name: clippy - run: cargo clippy --all-features -- -D warnings - - name: format - run: cargo +nightly fmt --all -- --check - - name: install taplo + - name: run e2e stack run: | - cargo install taplo-cli --locked - - name: taplo - run: taplo format --check --config .config/taplo.toml - - name: install zepter - run: | - cargo install zepter -f --locked - - name: zepter - run: zepter run check - - name: lint-markdown - run: | - npm install -g markdownlint-cli - markdownlint --version - markdownlint --config .github/.markdownlint.yaml --ignore target - - test: - needs: check - runs-on: snowbridge-runner - env: - CARGO_INCREMENTAL: 0 - RUST_BACKTRACE: 1 - RUSTFLAGS: -C debuginfo=1 - SKIP_WASM_BUILD: 1 - RUST_MIN_STACK: 8388608 - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - submodules: "true" - - uses: arduino/setup-protoc@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/cache@v1 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo- - - name: setup rust toolchain - run: rustup show - # Increase stack limit for beacon light client tests - - run: sudo prlimit --pid $$ --stack=32768 - # Run tests for runtime-benchmarks feature - - name: Tests for runtime-benchmarks - working-directory: bridges/snowbridge - run: > - cargo test - --workspace - --features runtime-benchmarks - # Run tests for all features - - name: Tests for all features - working-directory: bridges/snowbridge - run: > - cargo test - --workspace - --all-features - - coverage: - needs: check - runs-on: snowbridge-runner - env: - CARGO_INCREMENTAL: 0 - RUST_BACKTRACE: 1 - RUSTFLAGS: -C debuginfo=1 - SKIP_WASM_BUILD: 1 - RUST_MIN_STACK: 8388608 - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - submodules: "true" - - uses: arduino/setup-protoc@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: setup rust toolchain - run: rustup show - - name: run coverage test - working-directory: bridges/snowbridge - run: > - cargo install cargo-tarpaulin@0.27.0 && - cargo tarpaulin - --workspace - --engine llvm - --out xml - - name: Upload coverage reports to Codecov with GitHub Action - uses: codecov/codecov-action@v3 - with: - working-directory: bridges/snowbridge - files: cobertura.xml - flags: rust - - check-cumulus: - runs-on: snowbridge-runner - steps: - - uses: actions/checkout@v2 - with: - submodules: "true" - - uses: arduino/setup-protoc@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: setup rust toolchain - run: rustup show - - name: check bridge-hub fast-runtime - run: > - cargo check - --release --verbose - --package bridge-hub-rococo-runtime - --features fast-runtime - - name: check bridge-hub runtime-benchmarks - run: > - cargo check - --release --verbose - --package bridge-hub-rococo-runtime - --features runtime-benchmarks - - name: check bridge-hub try-runtime - run: > - cargo check - --release --verbose - --package bridge-hub-rococo-runtime - --features try-runtime - - name: check bridge-hub all features - run: > - cargo check - --release --verbose - --package bridge-hub-rococo-runtime - --all-features - - name: check asset-hub all features - run: > - cargo check - --release --verbose - --package asset-hub-rococo-runtime - --all-features - - runtime-tests: - needs: check - runs-on: snowbridge-runner - steps: - - uses: actions/checkout@v2 - with: - submodules: "true" - - uses: arduino/setup-protoc@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: setup rust toolchain - run: rustup show - - name: snowbridge runtime tests - run: > - RUST_LOG=xcm=trace cargo test - --package bridge-hub-rococo-runtime - --test snowbridge - -- --nocapture - - integration-tests: - needs: check - runs-on: snowbridge-runner - steps: - - uses: actions/checkout@v2 - with: - submodules: "true" - - uses: arduino/setup-protoc@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: setup rust toolchain - run: rustup show - - name: bridge-hub and asset-hub integration tests - run: > - RUST_LOG=xcm=trace cargo test - -p bridge-hub-rococo-integration-tests - -p asset-hub-rococo-integration-tests - -- --nocapture - - beacon-fuzz: - if: false - needs: test - runs-on: snowbridge-runner - env: - CARGO_INCREMENTAL: 0 - RUST_BACKTRACE: 1 - RUSTFLAGS: -C debuginfo=1 - SKIP_WASM_BUILD: 1 - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - submodules: "true" - - uses: actions/cache@v1 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo- - - name: install nightly - run: rustup install --profile minimal nightly-$RUST_NIGHTLY - - name: Install cargo-fuzz from crates.io - uses: baptiste0928/cargo-install@v2 - with: - crate: cargo-fuzz - version: "^0.11.2" - - name: Fuzz force checkpoint extrinsic - run: > - cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_force_checkpoint -- - -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS - - name: Fuzz submit extrinsic - run: > - cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_submit -- - -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS - - name: Fuzz submit execution header extrinsic - run: > - cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_submit_execution_header -- - -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS + cd snowbridge/web/packages/test + ./scripts/start-services.sh +# check: +# runs-on: snowbridge-runner +# env: +# CARGO_INCREMENTAL: 0 +# RUST_BACKTRACE: 1 +# RUSTFLAGS: -C debuginfo=1 +# SKIP_WASM_BUILD: 1 +# RUST_NIGHTLY_VERSION: nightly-2023-05-23 +# steps: +# - uses: actions/checkout@v2 +# with: +# submodules: "true" +# - uses: arduino/setup-protoc@v2 +# with: +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# - uses: actions/cache@v1 +# with: +# path: | +# ~/.cargo/registry +# ~/.cargo/git +# key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} +# restore-keys: | +# ${{ runner.os }}-cargo- +# - uses: actions/setup-node@v4.0.0 +# with: +# node-version: "18.x" +# registry-url: "https://npm.pkg.github.com" +# scope: "@paritytech" +# - name: setup rust toolchain +# run: | +# rustup target add wasm32-unknown-unknown +# curl -LO https://github.com/paritytech/rustc-rv32e-toolchain/releases/download/v1.1.0/rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst +# tar -I zstd -xf rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst +# mv rve-nightly ~/.rustup/toolchains/ +# rustup toolchain install nightly +# rustup component add rustfmt --toolchain nightly +# rustup show +# - name: cargo check +# run: cargo check --workspace --all-features +# - name: clippy +# run: cargo clippy --all-features -- -D warnings +# - name: format +# run: cargo +nightly fmt --all -- --check +# - name: install taplo +# run: | +# cargo install taplo-cli --locked +# - name: taplo +# run: taplo format --check --config .config/taplo.toml +# - name: install zepter +# run: | +# cargo install zepter -f --locked +# - name: zepter +# run: zepter run check +# - name: lint-markdown +# run: | +# npm install -g markdownlint-cli +# markdownlint --version +# markdownlint --config .github/.markdownlint.yaml --ignore target +# +# test: +# needs: check +# runs-on: snowbridge-runner +# env: +# CARGO_INCREMENTAL: 0 +# RUST_BACKTRACE: 1 +# RUSTFLAGS: -C debuginfo=1 +# SKIP_WASM_BUILD: 1 +# RUST_MIN_STACK: 8388608 +# steps: +# - uses: actions/checkout@v2 +# with: +# ref: ${{ github.head_ref }} +# submodules: "true" +# - uses: arduino/setup-protoc@v2 +# with: +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# - uses: actions/cache@v1 +# with: +# path: | +# ~/.cargo/registry +# ~/.cargo/git +# key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} +# restore-keys: | +# ${{ runner.os }}-cargo- +# - name: setup rust toolchain +# run: rustup show +# # Increase stack limit for beacon light client tests +# - run: sudo prlimit --pid $$ --stack=32768 +# # Run tests for runtime-benchmarks feature +# - name: Tests for runtime-benchmarks +# working-directory: bridges/snowbridge +# run: > +# cargo test +# --workspace +# --features runtime-benchmarks +# # Run tests for all features +# - name: Tests for all features +# working-directory: bridges/snowbridge +# run: > +# cargo test +# --workspace +# --all-features +# +# coverage: +# needs: check +# runs-on: snowbridge-runner +# env: +# CARGO_INCREMENTAL: 0 +# RUST_BACKTRACE: 1 +# RUSTFLAGS: -C debuginfo=1 +# SKIP_WASM_BUILD: 1 +# RUST_MIN_STACK: 8388608 +# steps: +# - uses: actions/checkout@v2 +# with: +# ref: ${{ github.head_ref }} +# submodules: "true" +# - uses: arduino/setup-protoc@v2 +# with: +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# - name: setup rust toolchain +# run: rustup show +# - name: run coverage test +# working-directory: bridges/snowbridge +# run: > +# cargo install cargo-tarpaulin@0.27.0 && +# cargo tarpaulin +# --workspace +# --engine llvm +# --out xml +# - name: Upload coverage reports to Codecov with GitHub Action +# uses: codecov/codecov-action@v3 +# with: +# working-directory: bridges/snowbridge +# files: cobertura.xml +# flags: rust +# +# check-cumulus: +# runs-on: snowbridge-runner +# steps: +# - uses: actions/checkout@v2 +# with: +# submodules: "true" +# - uses: arduino/setup-protoc@v2 +# with: +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# - name: setup rust toolchain +# run: rustup show +# - name: check bridge-hub fast-runtime +# run: > +# cargo check +# --release --verbose +# --package bridge-hub-rococo-runtime +# --features fast-runtime +# - name: check bridge-hub runtime-benchmarks +# run: > +# cargo check +# --release --verbose +# --package bridge-hub-rococo-runtime +# --features runtime-benchmarks +# - name: check bridge-hub try-runtime +# run: > +# cargo check +# --release --verbose +# --package bridge-hub-rococo-runtime +# --features try-runtime +# - name: check bridge-hub all features +# run: > +# cargo check +# --release --verbose +# --package bridge-hub-rococo-runtime +# --all-features +# - name: check asset-hub all features +# run: > +# cargo check +# --release --verbose +# --package asset-hub-rococo-runtime +# --all-features +# +# runtime-tests: +# needs: check +# runs-on: snowbridge-runner +# steps: +# - uses: actions/checkout@v2 +# with: +# submodules: "true" +# - uses: arduino/setup-protoc@v2 +# with: +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# - name: setup rust toolchain +# run: rustup show +# - name: snowbridge runtime tests +# run: > +# RUST_LOG=xcm=trace cargo test +# --package bridge-hub-rococo-runtime +# --test snowbridge +# -- --nocapture +# +# integration-tests: +# needs: check +# runs-on: snowbridge-runner +# steps: +# - uses: actions/checkout@v2 +# with: +# submodules: "true" +# - uses: arduino/setup-protoc@v2 +# with: +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# - name: setup rust toolchain +# run: rustup show +# - name: bridge-hub and asset-hub integration tests +# run: > +# RUST_LOG=xcm=trace cargo test +# -p bridge-hub-rococo-integration-tests +# -p asset-hub-rococo-integration-tests +# -- --nocapture +# +# beacon-fuzz: +# if: false +# needs: test +# runs-on: snowbridge-runner +# env: +# CARGO_INCREMENTAL: 0 +# RUST_BACKTRACE: 1 +# RUSTFLAGS: -C debuginfo=1 +# SKIP_WASM_BUILD: 1 +# steps: +# - uses: actions/checkout@v2 +# with: +# ref: ${{ github.head_ref }} +# submodules: "true" +# - uses: actions/cache@v1 +# with: +# path: | +# ~/.cargo/registry +# ~/.cargo/git +# key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} +# restore-keys: | +# ${{ runner.os }}-cargo- +# - name: install nightly +# run: rustup install --profile minimal nightly-$RUST_NIGHTLY +# - name: Install cargo-fuzz from crates.io +# uses: baptiste0928/cargo-install@v2 +# with: +# crate: cargo-fuzz +# version: "^0.11.2" +# - name: Fuzz force checkpoint extrinsic +# run: > +# cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_force_checkpoint -- +# -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS +# - name: Fuzz submit extrinsic +# run: > +# cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_submit -- +# -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS +# - name: Fuzz submit execution header extrinsic +# run: > +# cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_submit_execution_header -- +# -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS From dd3f1a9cde0eecf4cda54d8d6d42b06c69eee100 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 09:24:53 +0200 Subject: [PATCH 002/130] fix GA --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a35fc6a9c1fb..aa3a1f50c525 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -42,7 +42,7 @@ jobs: ${{ runner.os }}-cargo- - uses: actions/checkout@v2 with: - name: snowfork/snowbridge + repository: snowfork/snowbridge ref: main - uses: actions/setup-node@v4.0.0 with: From 2cb5473fefe89cb7f78519d81cf040a5968c8c59 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 09:26:46 +0200 Subject: [PATCH 003/130] test current dir --- .github/workflows/parachain.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index aa3a1f50c525..3fd9648c929f 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -49,10 +49,11 @@ jobs: node-version: "18.x" registry-url: "https://npm.pkg.github.com" scope: "@paritytech" + - name: ls + run: ls - name: run e2e stack - run: | - cd snowbridge/web/packages/test - ./scripts/start-services.sh + working-directory: snowbridge/web/packages/test + run: ./scripts/start-services.sh # check: # runs-on: snowbridge-runner # env: From ec558ddb77c3685f5a5ff971ac4a1d7fe0556bfd Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 09:28:49 +0200 Subject: [PATCH 004/130] fix path --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 3fd9648c929f..434981076c4d 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -52,7 +52,7 @@ jobs: - name: ls run: ls - name: run e2e stack - working-directory: snowbridge/web/packages/test + working-directory: web/packages/test run: ./scripts/start-services.sh # check: # runs-on: snowbridge-runner From 3d6bb26ea9529adf306ec72b093b9cba11338250 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 09:31:30 +0200 Subject: [PATCH 005/130] install moreutils --- .github/workflows/parachain.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 434981076c4d..333d0268e5fc 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -51,6 +51,9 @@ jobs: scope: "@paritytech" - name: ls run: ls + - name: install utils + run : | + apt-get install moreutils - name: run e2e stack working-directory: web/packages/test run: ./scripts/start-services.sh From 79e677abdc05f72319fc093f967dd6544c7b621d Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 09:33:42 +0200 Subject: [PATCH 006/130] sponge --- .github/workflows/parachain.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 333d0268e5fc..cf17587b0db3 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -53,10 +53,14 @@ jobs: run: ls - name: install utils run : | - apt-get install moreutils + go install github.com/zhufuyi/sponge/cmd/sponge@latest + sponge init + sponge plugins + sponge -v - name: run e2e stack working-directory: web/packages/test - run: ./scripts/start-services.sh + run: | + ./scripts/start-services.sh # check: # runs-on: snowbridge-runner # env: From e711450af1e87a40ed4d33e8c42caa5e355832ca Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 09:39:25 +0200 Subject: [PATCH 007/130] install go --- .github/workflows/parachain.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index cf17587b0db3..5ace6be1cc4d 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -51,6 +51,8 @@ jobs: scope: "@paritytech" - name: ls run: ls + - name: setup go + uses: actions/setup-go@v3.5.0 - name: install utils run : | go install github.com/zhufuyi/sponge/cmd/sponge@latest From 60403fd66ca4cf293a3eb4fe5ab52324b1c57cc1 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 09:56:52 +0200 Subject: [PATCH 008/130] export path --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 5ace6be1cc4d..7c40c87638f2 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -55,6 +55,7 @@ jobs: uses: actions/setup-go@v3.5.0 - name: install utils run : | + export PATH=${PATH}:go env GOPATH/bin go install github.com/zhufuyi/sponge/cmd/sponge@latest sponge init sponge plugins From 89e878a986fe5d21956d5fe4bdfaf38c90468b5d Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 13:22:08 +0200 Subject: [PATCH 009/130] try something else --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 7c40c87638f2..5ace6be1cc4d 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -55,7 +55,6 @@ jobs: uses: actions/setup-go@v3.5.0 - name: install utils run : | - export PATH=${PATH}:go env GOPATH/bin go install github.com/zhufuyi/sponge/cmd/sponge@latest sponge init sponge plugins From 8f0eff01b06047149e2d4876bfa4f3a26dbe44d6 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 13 Feb 2024 19:06:17 +0200 Subject: [PATCH 010/130] run nix --- .github/workflows/parachain.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 5ace6be1cc4d..d11d77db8bfb 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -51,6 +51,11 @@ jobs: scope: "@paritytech" - name: ls run: ls + - uses: cachix/install-nix-action@v22 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix build + - run: nix flake check - name: setup go uses: actions/setup-go@v3.5.0 - name: install utils From 7a6bc3b75545ba14e541fd75eff517036dba2d89 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:23:00 +0200 Subject: [PATCH 011/130] switch branch --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index d11d77db8bfb..8791782053c6 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -43,7 +43,7 @@ jobs: - uses: actions/checkout@v2 with: repository: snowfork/snowbridge - ref: main + ref: smoketests-ci - uses: actions/setup-node@v4.0.0 with: node-version: "18.x" From 9704c0aec17510a9bf6c6223e1a64dce143dc174 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:26:03 +0200 Subject: [PATCH 012/130] nix develop --- .github/workflows/parachain.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 8791782053c6..25381b9da35a 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -54,8 +54,7 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - - run: nix build - - run: nix flake check + - run: nix develop - name: setup go uses: actions/setup-go@v3.5.0 - name: install utils From d8d2c3a68d09f6878cdc9dc820b3bbaf53de485f Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:28:43 +0200 Subject: [PATCH 013/130] check setup --- .github/workflows/parachain.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 25381b9da35a..220a3e1ec57d 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -55,14 +55,7 @@ jobs: with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - run: nix develop - - name: setup go - uses: actions/setup-go@v3.5.0 - - name: install utils - run : | - go install github.com/zhufuyi/sponge/cmd/sponge@latest - sponge init - sponge plugins - sponge -v + - run : sponge -v - name: run e2e stack working-directory: web/packages/test run: | From 0231b60c486434f9e5a8e256c11f21a41fdc41b9 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:33:46 +0200 Subject: [PATCH 014/130] use nix setup --- .github/workflows/parachain.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 220a3e1ec57d..3d9b3e1569b4 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -54,12 +54,12 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - - run: nix develop + - run: nix develop -c sponge -v - run : sponge -v - name: run e2e stack working-directory: web/packages/test run: | - ./scripts/start-services.sh + nix develop -c ./scripts/start-services.sh # check: # runs-on: snowbridge-runner # env: From 06f2259acedbebffa59ed834ca7c2178b42c2604 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:36:05 +0200 Subject: [PATCH 015/130] e2e stack script --- .github/workflows/parachain.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 3d9b3e1569b4..d11d794a98f2 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -44,22 +44,12 @@ jobs: with: repository: snowfork/snowbridge ref: smoketests-ci - - uses: actions/setup-node@v4.0.0 - with: - node-version: "18.x" - registry-url: "https://npm.pkg.github.com" - scope: "@paritytech" - - name: ls - run: ls - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - - run: nix develop -c sponge -v - - run : sponge -v - name: run e2e stack - working-directory: web/packages/test run: | - nix develop -c ./scripts/start-services.sh + nix develop -c cd web/packages/test && ./scripts/start-services.sh # check: # runs-on: snowbridge-runner # env: From c35ac65316da0e301c1ddc3fac5e04b182ae2533 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:40:18 +0200 Subject: [PATCH 016/130] e2e stack script --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index d11d794a98f2..836f3769d878 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -49,7 +49,7 @@ jobs: github_access_token: ${{ secrets.GITHUB_TOKEN }} - name: run e2e stack run: | - nix develop -c cd web/packages/test && ./scripts/start-services.sh + nix develop -c sh -c 'cd web/packages/scripts && ./start-services.sh' # check: # runs-on: snowbridge-runner # env: From 80d0252f9573cf1a969385a402a147984cca2120 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:41:56 +0200 Subject: [PATCH 017/130] run command --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 836f3769d878..868b1156aaa8 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -49,7 +49,7 @@ jobs: github_access_token: ${{ secrets.GITHUB_TOKEN }} - name: run e2e stack run: | - nix develop -c sh -c 'cd web/packages/scripts && ./start-services.sh' + nix develop -c 'cd web/packages/scripts && ./start-services.sh' # check: # runs-on: snowbridge-runner # env: From 14bd39e9ff3939d4dd6c2e7a1758b7cc9b10f984 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:44:15 +0200 Subject: [PATCH 018/130] check current dir --- .github/workflows/parachain.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 868b1156aaa8..d761002f821b 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -47,9 +47,10 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix develop -c ls - name: run e2e stack run: | - nix develop -c 'cd web/packages/scripts && ./start-services.sh' + nix develop -c 'ls && cd web/packages/scripts && ./start-services.sh' # check: # runs-on: snowbridge-runner # env: From 0c2b8fa8c1f09ad03610bdbc9839268c7c64b892 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:47:03 +0200 Subject: [PATCH 019/130] correct dir --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index d761002f821b..e8f6e6fb0d12 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -50,7 +50,7 @@ jobs: - run: nix develop -c ls - name: run e2e stack run: | - nix develop -c 'ls && cd web/packages/scripts && ./start-services.sh' + nix develop -c 'cd web/packages/scripts && .scripts/start-services.sh' # check: # runs-on: snowbridge-runner # env: From cc5dd42fe8862bc10ece1e8adfc17f309f9c309e Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:50:54 +0200 Subject: [PATCH 020/130] correct dir --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index e8f6e6fb0d12..847d4fbc962e 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -50,7 +50,7 @@ jobs: - run: nix develop -c ls - name: run e2e stack run: | - nix develop -c 'cd web/packages/scripts && .scripts/start-services.sh' + nix develop -c 'cd web/packages/test && .scripts/start-services.sh' # check: # runs-on: snowbridge-runner # env: From 918e68ef45ffb3f09a72fed46eae6b25b2596486 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:53:07 +0200 Subject: [PATCH 021/130] just cd --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 847d4fbc962e..19377e5225ab 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -50,7 +50,7 @@ jobs: - run: nix develop -c ls - name: run e2e stack run: | - nix develop -c 'cd web/packages/test && .scripts/start-services.sh' + nix develop -c 'cd web/packages/test' # check: # runs-on: snowbridge-runner # env: From b1a317b36ea7a58e478b1682ab20b64e3f7ee584 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:56:39 +0200 Subject: [PATCH 022/130] try something else --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 19377e5225ab..1bfd4475f67c 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -50,7 +50,7 @@ jobs: - run: nix develop -c ls - name: run e2e stack run: | - nix develop -c 'cd web/packages/test' + nix develop -c sh -c 'cd web/packages/test && pwd' # check: # runs-on: snowbridge-runner # env: From 2add11d4e36b80258e2969e5c7a4b2fc9078e66e Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 08:59:30 +0200 Subject: [PATCH 023/130] rn e2e script --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 1bfd4475f67c..c6e23882b527 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -50,7 +50,7 @@ jobs: - run: nix develop -c ls - name: run e2e stack run: | - nix develop -c sh -c 'cd web/packages/test && pwd' + nix develop -c sh -c 'cd web/packages/test && ./scripts/start-services.sh' # check: # runs-on: snowbridge-runner # env: From e52a506ad5302ff8294779804bffcfe8cde750da Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:01:44 +0200 Subject: [PATCH 024/130] adds submodules --- .github/workflows/parachain.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index c6e23882b527..57c21b7b28be 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -44,6 +44,9 @@ jobs: with: repository: snowfork/snowbridge ref: smoketests-ci + submodules: "true" + - run: cd lodestar + - run: ls - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} From d1e040621353b6583fdccf0ce3fb94ac631e842d Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:10:36 +0200 Subject: [PATCH 025/130] ls --- .github/workflows/parachain.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 57c21b7b28be..4d7a3719b6a7 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -45,7 +45,8 @@ jobs: repository: snowfork/snowbridge ref: smoketests-ci submodules: "true" - - run: cd lodestar + - run: ls + - run: cd polkadot-sdk - run: ls - uses: cachix/install-nix-action@v22 with: From b00f803691b27761c7508c414a13cffc7a80f93b Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:15:11 +0200 Subject: [PATCH 026/130] print vars --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 4d7a3719b6a7..3dd2a311fd46 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -46,7 +46,7 @@ jobs: ref: smoketests-ci submodules: "true" - run: ls - - run: cd polkadot-sdk + - run: cd polkadot-sdk && ls - run: ls - uses: cachix/install-nix-action@v22 with: From a01f7eae71800b2a02db56f1dcea073181301ef4 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:24:40 +0200 Subject: [PATCH 027/130] remove ls --- .github/workflows/parachain.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 3dd2a311fd46..4d9191c0852c 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -45,9 +45,6 @@ jobs: repository: snowfork/snowbridge ref: smoketests-ci submodules: "true" - - run: ls - - run: cd polkadot-sdk && ls - - run: ls - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} From b8f8d4eedacb276c08100132abfec96d0766866f Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:28:13 +0200 Subject: [PATCH 028/130] cd instead of pushdir --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 4d9191c0852c..645b3df84992 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -40,6 +40,7 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} restore-keys: | ${{ runner.os }}-cargo- + - run: ls - uses: actions/checkout@v2 with: repository: snowfork/snowbridge From d987fa8976e15e1841b5f2d91266e56318772e22 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:33:30 +0200 Subject: [PATCH 029/130] try checking out differently --- .github/workflows/parachain.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 645b3df84992..af260d6ecbce 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -26,9 +26,6 @@ jobs: SKIP_WASM_BUILD: 1 RUST_NIGHTLY_VERSION: nightly-2023-05-23 steps: - - uses: actions/checkout@v2 - with: - submodules: "true" - uses: arduino/setup-protoc@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -46,6 +43,11 @@ jobs: repository: snowfork/snowbridge ref: smoketests-ci submodules: "true" + - uses: actions/checkout@v2 + with: + submodules: "true" + - run: ls + - run: cd polkadot-sdk && ls - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} From 744ff30aec9ff39b78f72e46bb6aee6363f58665 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:37:21 +0200 Subject: [PATCH 030/130] ls --- .github/workflows/parachain.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index af260d6ecbce..2f28ccf852b3 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -26,6 +26,9 @@ jobs: SKIP_WASM_BUILD: 1 RUST_NIGHTLY_VERSION: nightly-2023-05-23 steps: + - uses: actions/checkout@v2 + with: + submodules: "true" - uses: arduino/setup-protoc@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -43,11 +46,7 @@ jobs: repository: snowfork/snowbridge ref: smoketests-ci submodules: "true" - - uses: actions/checkout@v2 - with: - submodules: "true" - run: ls - - run: cd polkadot-sdk && ls - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} From 91d00bf33983d1c769435e460281577a5999614d Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:41:42 +0200 Subject: [PATCH 031/130] ls --- .github/workflows/parachain.yml | 1 + snowbridge-polkadot-sdk.patch | 1323 ------------------------------- 2 files changed, 1 insertion(+), 1323 deletions(-) delete mode 100644 snowbridge-polkadot-sdk.patch diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 2f28ccf852b3..fb6323c6a547 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -47,6 +47,7 @@ jobs: ref: smoketests-ci submodules: "true" - run: ls + - run: cd polkadot-sdk && ls - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/snowbridge-polkadot-sdk.patch b/snowbridge-polkadot-sdk.patch deleted file mode 100644 index d32636e2f074..000000000000 --- a/snowbridge-polkadot-sdk.patch +++ /dev/null @@ -1,1323 +0,0 @@ -diff --git a/bridges/snowbridge/.gitignore b/bridges/snowbridge/.gitignore -new file mode 100644 -index 00000000000..2c1d07caf6f ---- /dev/null -+++ b/bridges/snowbridge/.gitignore -@@ -0,0 +1,17 @@ -+# Generated by Cargo -+# will have compiled files and executables -+**/target/ -+# These are backup files generated by rustfmt -+**/*.rs.bk -+ -+*.log -+rococo-local-raw.json -+rococo-local.json -+ -+.envrc -+ -+# The cache for chain data in container -+.local -+ -+# coverage reports -+cobertura.xml -diff --git a/bridges/snowbridge/Cargo.toml b/bridges/snowbridge/Cargo.toml -new file mode 100644 -index 00000000000..a9e9ed9abf9 ---- /dev/null -+++ b/bridges/snowbridge/Cargo.toml -@@ -0,0 +1,54 @@ -+[workspace.package] -+authors = ["Snowfork "] -+edition = "2021" -+repository = "https://github.com/snowfork/polkadot-sdk.git" -+ -+[workspace] -+resolver = "2" -+members = [ -+ "pallets/ethereum-client", -+ "pallets/ethereum-client/fixtures", -+ "pallets/inbound-queue", -+ "pallets/inbound-queue/fixtures", -+ "pallets/outbound-queue", -+ "pallets/outbound-queue/merkle-tree", -+ "pallets/outbound-queue/runtime-api", -+ "pallets/system", -+ "pallets/system/runtime-api", -+ "primitives/beacon", -+ "primitives/core", -+ "primitives/ethereum", -+ "primitives/router", -+ "runtime/runtime-common", -+ "runtime/test-common", -+] -+ -+ -+[workspace.lints.rust] -+suspicious_double_ref_op = { level = "allow", priority = 2 } -+ -+[workspace.lints.clippy] -+all = { level = "allow", priority = 0 } -+correctness = { level = "warn", priority = 1 } -+complexity = { level = "warn", priority = 1 } -+if-same-then-else = { level = "allow", priority = 2 } -+zero-prefixed-literal = { level = "allow", priority = 2 } # 00_1000_000 -+type_complexity = { level = "allow", priority = 2 } # raison d'etre -+nonminimal-bool = { level = "allow", priority = 2 } # maybe -+borrowed-box = { level = "allow", priority = 2 } # Reasonable to fix this one -+too-many-arguments = { level = "allow", priority = 2 } # (Turning this on would lead to) -+needless-lifetimes = { level = "allow", priority = 2 } # generated code -+unnecessary_cast = { level = "allow", priority = 2 } # Types may change -+identity-op = { level = "allow", priority = 2 } # One case where we do 0 + -+useless_conversion = { level = "allow", priority = 2 } # Types may change -+unit_arg = { level = "allow", priority = 2 } # stylistic -+option-map-unit-fn = { level = "allow", priority = 2 } # stylistic -+bind_instead_of_map = { level = "allow", priority = 2 } # stylistic -+erasing_op = { level = "allow", priority = 2 } # E.g. 0 * DOLLARS -+eq_op = { level = "allow", priority = 2 } # In tests we test equality. -+while_immutable_condition = { level = "allow", priority = 2 } # false positives -+needless_option_as_deref = { level = "allow", priority = 2 } # false positives -+derivable_impls = { level = "allow", priority = 2 } # false positives -+stable_sort_primitive = { level = "allow", priority = 2 } # prefer stable sort -+extra-unused-type-parameters = { level = "allow", priority = 2 } # stylistic -+default_constructed_unit_structs = { level = "allow", priority = 2 } # stylistic -diff --git a/bridges/snowbridge/README.md b/bridges/snowbridge/README.md -index 49b9c2eaf55..3e5f63098ac 100644 ---- a/bridges/snowbridge/README.md -+++ b/bridges/snowbridge/README.md -@@ -1,32 +1,40 @@ --# Snowbridge --[![codecov](https://codecov.io/gh/Snowfork/snowbridge/branch/main/graph/badge.svg?token=9hvgSws4rN)](https://codecov.io/gh/Snowfork/snowbridge) -+# Snowbridge · -+[![codecov](https://codecov.io/gh/Snowfork/polkadot-sdk/branch/snowbridge/graph/badge.svg?token=9hvgSws4rN)](https://codecov.io/gh/Snowfork/polkadot-sdk) - ![GitHub](https://img.shields.io/github/license/Snowfork/snowbridge) - - Snowbridge is a trustless bridge between Polkadot and Ethereum. For documentation, visit https://docs.snowbridge.network. - - ## Components - -+The Snowbridge project lives in two repositories: -+ -+- [Snowfork/polkadot-sdk](https://github.com/Snowfork/polkadot-sdk): The Snowbridge parachain and pallets live in -+a fork of the polkadot-sdk. Changes are eventually contributed back to -+[paritytech/polkadot-sdk](https://github.com/paritytech/polkadot-sdk) -+- [Snowfork/snowbridge](https://github.com/Snowfork/snowbridge): The rest of the Snowbridge components, like contracts, -+off-chain relayer, end-to-end tests and test-net setup code. -+ - ### Parachain - --Polkadot parachain and our pallets. See [parachain/README.md](https://github.com/Snowfork/snowbridge/blob/main/parachain/README.md). -+Polkadot parachain and our pallets. See [README.md](https://github.com/Snowfork/polkadot-sdk/blob/snowbridge/bridges/snowbridge/README.md). - - ### Contracts - --Ethereum contracts and unit tests. See [contracts/README.md](https://github.com/Snowfork/snowbridge/blob/main/contracts/README.md) -+Ethereum contracts and unit tests. See [Snowfork/snowbridge/contracts/README.md](https://github.com/Snowfork/snowbridge/blob/main/contracts/README.md) - - ### Relayer - - Off-chain relayer services for relaying messages between Polkadot and Ethereum. See --[relayer/README.md](https://github.com/Snowfork/snowbridge/blob/main/relayer/README.md) -+[Snowfork/snowbridge/relayer/README.md](https://github.com/Snowfork/snowbridge/blob/main/relayer/README.md) - - ### Local Testnet - - Scripts to provision a local testnet, running the above services to bridge between local deployments of Polkadot and --Ethereum. See [web/packages/test/README.md](https://github.com/Snowfork/snowbridge/blob/main/web/packages/test/README.md). -+Ethereum. See [Snowfork/snowbridge/web/packages/test/README.md](https://github.com/Snowfork/snowbridge/blob/main/web/packages/test/README.md). - - ### Smoke Tests - --Integration tests for our local testnet. See [smoketest/README.md](https://github.com/Snowfork/snowbridge/blob/main/smoketest/README.md). -+Integration tests for our local testnet. See [Snowfork/snowbridge/smoketest/README.md](https://github.com/Snowfork/snowbridge/blob/main/smoketest/README.md). - - ## Development - -@@ -83,7 +91,7 @@ direnv allow - - ### Upgrading the Rust toolchain - --Sometimes we would like to upgrade rust toolchain. First update `parachain/rust-toolchain.toml` as required and then -+Sometimes we would like to upgrade rust toolchain. First update `rust-toolchain.toml` as required and then - update `flake.lock` running - ```sh - nix flake lock --update-input rust-overlay -diff --git a/bridges/snowbridge/pallets/ethereum-client/Cargo.toml b/bridges/snowbridge/pallets/ethereum-client/Cargo.toml -index 2f76d5b8357..a30cb88c908 100644 ---- a/bridges/snowbridge/pallets/ethereum-client/Cargo.toml -+++ b/bridges/snowbridge/pallets/ethereum-client/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-pallet-ethereum-client" - description = "Snowbridge Ethereum Client Pallet" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/pallets/ethereum-client/fuzz/.gitignore b/bridges/snowbridge/pallets/ethereum-client/fuzz/.gitignore -new file mode 100644 -index 00000000000..2f940cc8b2e ---- /dev/null -+++ b/bridges/snowbridge/pallets/ethereum-client/fuzz/.gitignore -@@ -0,0 +1,5 @@ -+target -+corpus -+artifacts -+coverage -+.idea -diff --git a/bridges/snowbridge/pallets/ethereum-client/fuzz/Cargo.toml b/bridges/snowbridge/pallets/ethereum-client/fuzz/Cargo.toml -new file mode 100644 -index 00000000000..2a4e91590c2 ---- /dev/null -+++ b/bridges/snowbridge/pallets/ethereum-client/fuzz/Cargo.toml -@@ -0,0 +1,41 @@ -+[package] -+name = "snowbridge-ethereum-client-fuzz" -+version = "0.0.0" -+publish = false -+edition = "2021" -+ -+[package.metadata] -+cargo-fuzz = true -+ -+[dependencies] -+libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] } -+arbitrary = { version = "1", optional = true, features = ["derive"] } -+snowbridge-pallet-ethereum-client = { path = "..", features = ["fuzzing"] } -+snowbridge-beacon-primitives = { path = "../../../primitives/beacon" } -+hex-literal = "0.4.1" -+sp-core = { path = "../../../../../substrate/primitives/core", default-features = false } -+ -+# Prevent this from interfering with workspaces -+[workspace] -+members = ["."] -+ -+[profile.release] -+debug = 1 -+ -+[[bin]] -+name = "fuzz_force_checkpoint" -+path = "fuzz_targets/fuzz_force_checkpoint.rs" -+test = false -+doc = false -+ -+[[bin]] -+name = "fuzz_submit" -+path = "fuzz_targets/fuzz_submit.rs" -+test = false -+doc = false -+ -+[[bin]] -+name = "fuzz_submit_execution_header" -+path = "fuzz_targets/fuzz_submit_execution_header.rs" -+test = false -+doc = false -diff --git a/bridges/snowbridge/pallets/ethereum-client/fuzz/README.md b/bridges/snowbridge/pallets/ethereum-client/fuzz/README.md -new file mode 100644 -index 00000000000..eeecf199ca0 ---- /dev/null -+++ b/bridges/snowbridge/pallets/ethereum-client/fuzz/README.md -@@ -0,0 +1,21 @@ -+# Beacon client fuzz tests -+ -+This crate contains fuzz tests for the three beacon client extrinsics. -+ -+# Installation -+ -+``` -+cargo install cargo-fuzz -+``` -+ -+# Run tests -+ -+- Force Checkpoint: `cargo fuzz run fuzz_force_checkpoint -- -max_len=10000000000` -+- Submit: `cargo fuzz run fuzz_submit -- -max_len=10000000000` -+- Submit Execution Header: `cargo fuzz run fuzz_submit_execution_header -- -max_len=10000000000` -+ -+Note: `max-len` is necessary because the max input length is 4096 bytes. Some of our inputs are larger than this -+default value. When running the tests without an increased max len parameter, no fuzz data will be generated. -+ -+The tests will keep running until a crash is found, so in our CI setup the number of runs is limited so that the -+test completes. -diff --git a/bridges/snowbridge/pallets/ethereum-client/fuzz/fuzz_targets/fuzz_force_checkpoint.rs b/bridges/snowbridge/pallets/ethereum-client/fuzz/fuzz_targets/fuzz_force_checkpoint.rs -new file mode 100644 -index 00000000000..2e3d7543f46 ---- /dev/null -+++ b/bridges/snowbridge/pallets/ethereum-client/fuzz/fuzz_targets/fuzz_force_checkpoint.rs -@@ -0,0 +1,16 @@ -+#![no_main] -+extern crate snowbridge_pallet_ethereum_client; -+ -+use libfuzzer_sys::fuzz_target; -+use snowbridge_pallet_ethereum_client::{mock::*, types::CheckpointUpdate}; -+use snowbridge_ethereum_beacon_client_fuzz::types::FuzzCheckpointUpdate; -+use std::convert::TryInto; -+ -+fuzz_target!(|input: FuzzCheckpointUpdate| { -+ new_tester().execute_with(|| { -+ let update: CheckpointUpdate = input.try_into().unwrap(); -+ let result = -+ EthereumBeaconClient::force_checkpoint(RuntimeOrigin::root(), Box::new(update)); -+ assert!(result.is_err()); -+ }); -+}); -diff --git a/bridges/snowbridge/pallets/ethereum-client/fuzz/fuzz_targets/fuzz_submit.rs b/bridges/snowbridge/pallets/ethereum-client/fuzz/fuzz_targets/fuzz_submit.rs -new file mode 100644 -index 00000000000..79c69e2cb23 ---- /dev/null -+++ b/bridges/snowbridge/pallets/ethereum-client/fuzz/fuzz_targets/fuzz_submit.rs -@@ -0,0 +1,16 @@ -+#![no_main] -+extern crate snowbridge_pallet_ethereum_client; -+ -+use snowbridge_pallet_ethereum_client::{mock::*, types::Update}; -+use snowbridge_ethereum_beacon_client_fuzz::types::FuzzUpdate; -+use std::convert::TryInto; -+ -+use libfuzzer_sys::fuzz_target; -+ -+fuzz_target!(|input: FuzzUpdate| { -+ new_tester().execute_with(|| { -+ let update: Update = input.try_into().unwrap(); -+ let result = EthereumBeaconClient::submit(RuntimeOrigin::signed(1), Box::new(update)); -+ assert!(result.is_err()); -+ }); -+}); -diff --git a/bridges/snowbridge/pallets/ethereum-client/fuzz/fuzz_targets/fuzz_submit_execution_header.rs b/bridges/snowbridge/pallets/ethereum-client/fuzz/fuzz_targets/fuzz_submit_execution_header.rs -new file mode 100644 -index 00000000000..82f4ea97079 ---- /dev/null -+++ b/bridges/snowbridge/pallets/ethereum-client/fuzz/fuzz_targets/fuzz_submit_execution_header.rs -@@ -0,0 +1,19 @@ -+#![no_main] -+extern crate snowbridge_pallet_ethereum_client; -+ -+use snowbridge_beacon_primitives::ExecutionHeaderUpdate; -+use snowbridge_pallet_ethereum_client::mock::*; -+use snowbridge_pallet_ethereum_client::types::FuzzExecutionHeaderUpdate; -+ -+use libfuzzer_sys::fuzz_target; -+ -+fuzz_target!(|input: FuzzExecutionHeaderUpdate| { -+ new_tester().execute_with(|| { -+ let update: ExecutionHeaderUpdate = input.try_into().unwrap(); -+ let result = EthereumBeaconClient::submit_execution_header( -+ RuntimeOrigin::signed(1), -+ Box::new(update), -+ ); -+ assert!(result.is_err()); -+ }); -+}); -diff --git a/bridges/snowbridge/pallets/ethereum-client/fuzz/src/impls.rs b/bridges/snowbridge/pallets/ethereum-client/fuzz/src/impls.rs -new file mode 100644 -index 00000000000..b216429fd3c ---- /dev/null -+++ b/bridges/snowbridge/pallets/ethereum-client/fuzz/src/impls.rs -@@ -0,0 +1,220 @@ -+use crate::types::{ -+ FuzzAncestryProof, FuzzBeaconHeader, FuzzCheckpointUpdate, FuzzExecutionHeaderUpdate, -+ FuzzExecutionPayloadHeader, FuzzNextSyncCommitteeUpdate, FuzzSyncAggregate, FuzzSyncCommittee, -+ FuzzUpdate, -+}; -+use arbitrary::{Arbitrary, Result, Unstructured}; -+use libfuzzer_sys::arbitrary; -+use snowbridge_beacon_primitives::{ -+ types::BeaconHeader, updates::AncestryProof, ExecutionHeaderUpdate, ExecutionPayloadHeader, -+ PublicKey, -+}; -+use snowbridge_pallet_ethereum_client::types::{ -+ CheckpointUpdate, NextSyncCommitteeUpdate, SyncAggregate, SyncCommittee, Update, -+}; -+use sp_core::H256; -+use std::convert::TryInto; -+ -+impl TryFrom for Update { -+ type Error = String; -+ -+ fn try_from(other: FuzzUpdate) -> Result { -+ let next: Option = other -+ .next_sync_committee_update -+ .map(|fuzz_update| fuzz_update.try_into().unwrap()); -+ -+ Ok(Self { -+ attested_header: other.attested_header.clone().try_into().unwrap(), -+ sync_aggregate: other.sync_aggregate.try_into().unwrap(), -+ signature_slot: other.signature_slot, -+ next_sync_committee_update: next, -+ finalized_header: other.finalized_header.clone().try_into().unwrap(), -+ finality_branch: other -+ .finality_branch -+ .iter() -+ .map(|&hash| H256::from(hash)) -+ .collect::>() -+ .as_slice() -+ .try_into() -+ .unwrap(), -+ block_roots_root: other.block_roots_root.into(), -+ block_roots_branch: other -+ .block_roots_branch -+ .iter() -+ .map(|&hash| H256::from(hash)) -+ .collect::>() -+ .as_slice() -+ .try_into() -+ .unwrap(), -+ }) -+ } -+} -+ -+impl TryFrom for NextSyncCommitteeUpdate { -+ type Error = String; -+ -+ fn try_from(other: FuzzNextSyncCommitteeUpdate) -> Result { -+ Ok(Self { -+ next_sync_committee: other.next_sync_committee.try_into().unwrap(), -+ next_sync_committee_branch: other -+ .next_sync_committee_branch -+ .iter() -+ .map(|&hash| H256::from(hash)) -+ .collect::>() -+ .as_slice() -+ .try_into() -+ .unwrap(), -+ }) -+ } -+} -+ -+impl TryFrom for SyncAggregate { -+ type Error = String; -+ -+ fn try_from(other: FuzzSyncAggregate) -> Result { -+ Ok(Self { -+ sync_committee_bits: other.sync_committee_bits.into(), -+ sync_committee_signature: other.sync_committee_signature.into(), -+ }) -+ } -+} -+ -+impl TryFrom for CheckpointUpdate { -+ type Error = String; -+ -+ fn try_from(other: FuzzCheckpointUpdate) -> Result { -+ Ok(Self { -+ header: other.header.clone().try_into().unwrap(), -+ current_sync_committee: other.current_sync_committee.try_into().unwrap(), -+ current_sync_committee_branch: other -+ .current_sync_committee_branch -+ .iter() -+ .map(|&hash| H256::from(hash)) -+ .collect::>() -+ .as_slice() -+ .try_into() -+ .unwrap(), -+ validators_root: other.validators_root.into(), -+ block_roots_root: other.block_roots_root.into(), -+ block_roots_branch: other -+ .block_roots_branch -+ .iter() -+ .map(|&hash| H256::from(hash)) -+ .collect::>() -+ .as_slice() -+ .try_into() -+ .unwrap(), -+ }) -+ } -+} -+ -+impl TryFrom for SyncCommittee { -+ type Error = String; -+ -+ fn try_from(other: FuzzSyncCommittee) -> Result { -+ Ok(Self { -+ pubkeys: other -+ .pubkeys -+ .iter() -+ .map(|&pk| { pk.into() }) -+ .collect::>() -+ .as_slice() -+ .try_into() -+ .unwrap(), -+ aggregate_pubkey: other.aggregate_pubkey.into(), -+ }) -+ } -+} -+ -+impl TryFrom for AncestryProof { -+ type Error = String; -+ -+ fn try_from(other: FuzzAncestryProof) -> Result { -+ Ok(Self { -+ header_branch: other -+ .header_branch -+ .iter() -+ .map(|&hash| H256::from(hash)) -+ .collect::>() -+ .as_slice() -+ .try_into() -+ .unwrap(), -+ finalized_block_root: other.finalized_block_root.into(), -+ }) -+ } -+} -+ -+impl TryFrom for ExecutionPayloadHeader { -+ type Error = String; -+ -+ fn try_from(other: FuzzExecutionPayloadHeader) -> Result { -+ Ok(Self { -+ parent_hash: other.parent_hash.into(), -+ fee_recipient: other.fee_recipient.into(), -+ state_root: other.state_root.into(), -+ receipts_root: other.receipts_root.into(), -+ logs_bloom: other.logs_bloom.into(), -+ prev_randao: other.prev_randao.into(), -+ block_number: other.block_number, -+ gas_limit: other.gas_limit, -+ gas_used: other.gas_used, -+ timestamp: other.timestamp, -+ extra_data: other.extra_data.into(), -+ base_fee_per_gas: other.base_fee_per_gas.into(), -+ block_hash: other.block_hash.into(), -+ transactions_root: other.transactions_root.into(), -+ withdrawals_root: other.withdrawals_root.into(), -+ }) -+ } -+} -+ -+impl TryFrom for BeaconHeader { -+ type Error = String; -+ -+ fn try_from(other: FuzzBeaconHeader) -> Result { -+ Ok(Self { -+ slot: other.slot, -+ proposer_index: other.proposer_index, -+ parent_root: other.parent_root.into(), -+ state_root: other.state_root.into(), -+ body_root: other.body_root.into(), -+ }) -+ } -+} -+ -+impl TryFrom for ExecutionHeaderUpdate { -+ type Error = String; -+ -+ fn try_from(other: FuzzExecutionHeaderUpdate) -> Result { -+ let ancestry_proof: Option = -+ other.ancestry_proof.map(|fuzz_update| fuzz_update.try_into().unwrap()); -+ -+ Ok(Self { -+ header: other.header.try_into().unwrap(), -+ ancestry_proof, -+ execution_header: other.execution_header.try_into().unwrap(), -+ execution_branch: other -+ .execution_branch -+ .iter() -+ .map(|&hash| H256::from(hash)) -+ .collect::>() -+ .as_slice() -+ .try_into() -+ .unwrap(), -+ }) -+ } -+} -+ -+// The arbitrary derive implementation is super slow for the pubkey set, so create a custom -+// impl for the sync committee. -+impl Arbitrary<'_> for FuzzSyncCommittee { -+ fn arbitrary(u: &mut Unstructured<'_>) -> Result { -+ let mut pubkeys = [[0u8; 48]; 32]; -+ -+ for i in 0..32 { -+ pubkeys[i] = <[u8; 48]>::arbitrary(u)?; -+ } -+ -+ Ok(FuzzSyncCommittee { pubkeys, aggregate_pubkey: <[u8; 48]>::arbitrary(u)? }) -+ } -+} -diff --git a/bridges/snowbridge/pallets/ethereum-client/fuzz/src/lib.rs b/bridges/snowbridge/pallets/ethereum-client/fuzz/src/lib.rs -new file mode 100644 -index 00000000000..fb880c01820 ---- /dev/null -+++ b/bridges/snowbridge/pallets/ethereum-client/fuzz/src/lib.rs -@@ -0,0 +1,2 @@ -+pub mod impls; -+pub mod types; -diff --git a/bridges/snowbridge/pallets/ethereum-client/fuzz/src/types.rs b/bridges/snowbridge/pallets/ethereum-client/fuzz/src/types.rs -new file mode 100644 -index 00000000000..37e5eb0d6c4 ---- /dev/null -+++ b/bridges/snowbridge/pallets/ethereum-client/fuzz/src/types.rs -@@ -0,0 +1,83 @@ -+use libfuzzer_sys::arbitrary; -+ -+#[derive(arbitrary::Arbitrary, Debug, Clone)] -+pub struct FuzzCheckpointUpdate { -+ pub header: FuzzBeaconHeader, -+ pub current_sync_committee: FuzzSyncCommittee, -+ pub current_sync_committee_branch: Vec<[u8; 32]>, -+ pub validators_root: [u8; 32], -+ pub block_roots_root: [u8; 32], -+ pub block_roots_branch: Vec<[u8; 32]>, -+} -+ -+#[derive(arbitrary::Arbitrary, Debug, Clone)] -+pub struct FuzzBeaconHeader { -+ pub slot: u64, -+ pub proposer_index: u64, -+ pub parent_root: [u8; 32], -+ pub state_root: [u8; 32], -+ pub body_root: [u8; 32], -+} -+ -+#[derive(Debug, Clone)] -+pub struct FuzzSyncCommittee { -+ pub pubkeys: [[u8; 48]; 32], -+ pub aggregate_pubkey: [u8; 48], -+} -+ -+#[derive(arbitrary::Arbitrary, Debug, Clone)] -+pub struct FuzzUpdate { -+ pub attested_header: FuzzBeaconHeader, -+ pub sync_aggregate: FuzzSyncAggregate, -+ pub signature_slot: u64, -+ pub next_sync_committee_update: Option, -+ pub finalized_header: FuzzBeaconHeader, -+ pub finality_branch: Vec<[u8; 32]>, -+ pub block_roots_root: [u8; 32], -+ pub block_roots_branch: Vec<[u8; 32]>, -+} -+ -+#[derive(arbitrary::Arbitrary, Debug, Clone)] -+pub struct FuzzSyncAggregate { -+ pub sync_committee_bits: [u8; 4], -+ pub sync_committee_signature: [u8; 96], -+} -+ -+#[derive(arbitrary::Arbitrary, Debug, Clone)] -+pub struct FuzzNextSyncCommitteeUpdate { -+ pub next_sync_committee: FuzzSyncCommittee, -+ pub next_sync_committee_branch: Vec<[u8; 32]>, -+} -+ -+#[derive(arbitrary::Arbitrary, Debug, Clone)] -+pub struct FuzzExecutionHeaderUpdate { -+ pub header: FuzzBeaconHeader, -+ pub ancestry_proof: Option, -+ pub execution_header: FuzzExecutionPayloadHeader, -+ pub execution_branch: Vec<[u8; 32]>, -+} -+ -+#[derive(arbitrary::Arbitrary, Debug, Clone)] -+pub struct FuzzAncestryProof { -+ pub header_branch: Vec<[u8; 32]>, -+ pub finalized_block_root: [u8; 32], -+} -+ -+#[derive(arbitrary::Arbitrary, Debug, Clone)] -+pub struct FuzzExecutionPayloadHeader { -+ pub parent_hash: [u8; 32], -+ pub fee_recipient: [u8; 20], -+ pub state_root: [u8; 32], -+ pub receipts_root: [u8; 32], -+ pub logs_bloom: Vec, -+ pub prev_randao: [u8; 32], -+ pub block_number: u64, -+ pub gas_limit: u64, -+ pub gas_used: u64, -+ pub timestamp: u64, -+ pub extra_data: Vec, -+ pub base_fee_per_gas: [u8; 32], -+ pub block_hash: [u8; 32], -+ pub transactions_root: [u8; 32], -+ pub withdrawals_root: [u8; 32], -+} -diff --git a/bridges/snowbridge/pallets/inbound-queue/Cargo.toml b/bridges/snowbridge/pallets/inbound-queue/Cargo.toml -index 1081b162dda..dc853dc0a51 100644 ---- a/bridges/snowbridge/pallets/inbound-queue/Cargo.toml -+++ b/bridges/snowbridge/pallets/inbound-queue/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-pallet-inbound-queue" - description = "Snowbridge Inbound Queue Pallet" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/pallets/inbound-queue/src/mock.rs b/bridges/snowbridge/pallets/inbound-queue/src/mock.rs -index 110f611c676..d75c3c6a186 100644 ---- a/bridges/snowbridge/pallets/inbound-queue/src/mock.rs -+++ b/bridges/snowbridge/pallets/inbound-queue/src/mock.rs -@@ -88,6 +88,7 @@ impl pallet_balances::Config for Test { - type MaxFreezes = (); - type RuntimeHoldReason = (); - type RuntimeFreezeReason = (); -+ type MaxHolds = (); - } - - parameter_types! { -diff --git a/bridges/snowbridge/pallets/outbound-queue/Cargo.toml b/bridges/snowbridge/pallets/outbound-queue/Cargo.toml -index ae52fb3e5c4..03ddb12b7b4 100644 ---- a/bridges/snowbridge/pallets/outbound-queue/Cargo.toml -+++ b/bridges/snowbridge/pallets/outbound-queue/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-pallet-outbound-queue" - description = "Snowbridge Outbound Queue Pallet" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/pallets/outbound-queue/merkle-tree/Cargo.toml b/bridges/snowbridge/pallets/outbound-queue/merkle-tree/Cargo.toml -index c185d5af706..503dc14bbc9 100644 ---- a/bridges/snowbridge/pallets/outbound-queue/merkle-tree/Cargo.toml -+++ b/bridges/snowbridge/pallets/outbound-queue/merkle-tree/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-outbound-queue-merkle-tree" - description = "Snowbridge Outbound Queue Merkle Tree" --version = "0.1.1" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/pallets/outbound-queue/runtime-api/Cargo.toml b/bridges/snowbridge/pallets/outbound-queue/runtime-api/Cargo.toml -index 347b3bae493..0f0bfc4e358 100644 ---- a/bridges/snowbridge/pallets/outbound-queue/runtime-api/Cargo.toml -+++ b/bridges/snowbridge/pallets/outbound-queue/runtime-api/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-outbound-queue-runtime-api" - description = "Snowbridge Outbound Queue Runtime API" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/pallets/system/Cargo.toml b/bridges/snowbridge/pallets/system/Cargo.toml -index aa600511633..f365b52e84d 100644 ---- a/bridges/snowbridge/pallets/system/Cargo.toml -+++ b/bridges/snowbridge/pallets/system/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-pallet-system" - description = "Snowbridge System Pallet" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/pallets/system/runtime-api/Cargo.toml b/bridges/snowbridge/pallets/system/runtime-api/Cargo.toml -index 355d2d29147..6d3735f776b 100644 ---- a/bridges/snowbridge/pallets/system/runtime-api/Cargo.toml -+++ b/bridges/snowbridge/pallets/system/runtime-api/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-system-runtime-api" - description = "Snowbridge System Runtime API" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/pallets/system/src/lib.rs b/bridges/snowbridge/pallets/system/src/lib.rs -index b7f38fb753d..13abee14b4a 100644 ---- a/bridges/snowbridge/pallets/system/src/lib.rs -+++ b/bridges/snowbridge/pallets/system/src/lib.rs -@@ -79,6 +79,8 @@ use xcm_executor::traits::ConvertLocation; - #[cfg(feature = "runtime-benchmarks")] - use frame_support::traits::OriginTrait; - -+pub use pallet::*; -+ - pub type BalanceOf = - <::Token as Inspect<::AccountId>>::Balance; - pub type AccountIdOf = ::AccountId; -diff --git a/bridges/snowbridge/pallets/system/src/mock.rs b/bridges/snowbridge/pallets/system/src/mock.rs -index edc3f141b07..bc229578132 100644 ---- a/bridges/snowbridge/pallets/system/src/mock.rs -+++ b/bridges/snowbridge/pallets/system/src/mock.rs -@@ -136,6 +136,7 @@ impl pallet_balances::Config for Test { - type MaxFreezes = (); - type RuntimeHoldReason = (); - type RuntimeFreezeReason = (); -+ type MaxHolds = (); - } - - impl pallet_xcm_origin::Config for Test { -diff --git a/bridges/snowbridge/primitives/beacon/Cargo.toml b/bridges/snowbridge/primitives/beacon/Cargo.toml -index b59e5191b41..bb30eae33b1 100644 ---- a/bridges/snowbridge/primitives/beacon/Cargo.toml -+++ b/bridges/snowbridge/primitives/beacon/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-beacon-primitives" - description = "Snowbridge Beacon Primitives" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/primitives/beacon/src/types.rs b/bridges/snowbridge/primitives/beacon/src/types.rs -index 2af522f56b0..6f0886ba8b5 100644 ---- a/bridges/snowbridge/primitives/beacon/src/types.rs -+++ b/bridges/snowbridge/primitives/beacon/src/types.rs -@@ -586,7 +586,7 @@ pub mod deneb { - use sp_std::prelude::*; - - /// ExecutionPayloadHeader -- /// -+ /// https://github.com/ethereum/consensus-specs/blob/dev/specs/deneb/beacon-chain.md#executionpayloadheader - #[derive( - Default, Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo, - )] -diff --git a/bridges/snowbridge/primitives/core/Cargo.toml b/bridges/snowbridge/primitives/core/Cargo.toml -index f735d01a848..8df3ac21f4b 100644 ---- a/bridges/snowbridge/primitives/core/Cargo.toml -+++ b/bridges/snowbridge/primitives/core/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-core" - description = "Snowbridge Core" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/primitives/ethereum/Cargo.toml b/bridges/snowbridge/primitives/ethereum/Cargo.toml -index 047ebdd5669..710a056daa5 100644 ---- a/bridges/snowbridge/primitives/ethereum/Cargo.toml -+++ b/bridges/snowbridge/primitives/ethereum/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-ethereum" - description = "Snowbridge Ethereum" --version = "0.1.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/primitives/router/Cargo.toml b/bridges/snowbridge/primitives/router/Cargo.toml -index 712c60c2148..6c0d6aefed9 100644 ---- a/bridges/snowbridge/primitives/router/Cargo.toml -+++ b/bridges/snowbridge/primitives/router/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-router-primitives" - description = "Snowbridge Router Primitives" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/runtime/runtime-common/Cargo.toml b/bridges/snowbridge/runtime/runtime-common/Cargo.toml -index f5b44b25585..12f9cfa42d9 100644 ---- a/bridges/snowbridge/runtime/runtime-common/Cargo.toml -+++ b/bridges/snowbridge/runtime/runtime-common/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-runtime-common" - description = "Snowbridge Runtime Common" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition.workspace = true - repository.workspace = true -diff --git a/bridges/snowbridge/runtime/test-common/Cargo.toml b/bridges/snowbridge/runtime/test-common/Cargo.toml -index a2994e61891..7c02ac40b63 100644 ---- a/bridges/snowbridge/runtime/test-common/Cargo.toml -+++ b/bridges/snowbridge/runtime/test-common/Cargo.toml -@@ -1,7 +1,7 @@ - [package] - name = "snowbridge-runtime-test-common" - description = "Snowbridge Runtime Tests" --version = "0.0.0" -+version = "0.9.0" - authors = ["Snowfork "] - edition = "2021" - license = "Apache-2.0" -diff --git a/bridges/snowbridge/rustfmt.toml b/bridges/snowbridge/rustfmt.toml -new file mode 100644 -index 00000000000..c3421539123 ---- /dev/null -+++ b/bridges/snowbridge/rustfmt.toml -@@ -0,0 +1,24 @@ -+# Basic -+edition = "2021" -+hard_tabs = true -+max_width = 100 -+use_small_heuristics = "Max" -+# Imports -+imports_granularity = "Crate" -+reorder_imports = true -+# Consistency -+newline_style = "Unix" -+# Misc -+chain_width = 80 -+spaces_around_ranges = false -+binop_separator = "Back" -+reorder_impl_items = false -+match_arm_leading_pipes = "Preserve" -+match_arm_blocks = false -+match_block_trailing_comma = true -+trailing_comma = "Vertical" -+trailing_semicolon = false -+use_field_init_shorthand = true -+# Format comments -+comment_width = 100 -+wrap_comments = true -diff --git a/bridges/snowbridge/scripts/contribute-upstream.sh b/bridges/snowbridge/scripts/contribute-upstream.sh -new file mode 100755 -index 00000000000..8aa2d2a7035 ---- /dev/null -+++ b/bridges/snowbridge/scripts/contribute-upstream.sh -@@ -0,0 +1,80 @@ -+#!/bin/bash -+ -+# A script to cleanup the Snowfork fork of the polkadot-sdk to contribute it upstream back to parity/polkadot-sdk -+# ./bridges/snowbridge/scripts/contribute-upstream.sh -+ -+# show CLI help -+function show_help() { -+ set +x -+ echo " " -+ echo Error: $1 -+ echo "Usage:" -+ echo " ./bridges/snowbridge/scripts/contribute-upstream.sh Exit with code 0 if pallets code is well decoupled from the other code in the repo" -+ exit 1 -+} -+ -+if [[ -z "$1" ]]; then -+ echo "Please provide a branch name you would like your upstream branch to be named" -+ exit 1 -+fi -+ -+branch_name=$1 -+ -+set -eux -+ -+# let's avoid any restrictions on where this script can be called for - snowbridge repo may be -+# plugged into any other repo folder. So the script (and other stuff that needs to be removed) -+# may be located either in call dir, or one of it subdirs. -+SNOWBRIDGE_FOLDER="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../" -+ -+# Get the current Git branch name -+current_branch=$(git rev-parse --abbrev-ref HEAD) -+ -+if [ "$current_branch" = "$branch_name" ] || git branch | grep -q "$branch_name"; then -+ echo "Already on requested branch or branch exists, not creating." -+else -+ git branch "$branch_name" -+fi -+ -+git checkout "$branch_name" -+ -+# remove everything we think is not required for our needs -+rm -rf rust-toolchain.toml -+rm -rf $SNOWBRIDGE_FOLDER/.cargo -+rm -rf $SNOWBRIDGE_FOLDER/.github -+rm -rf $SNOWBRIDGE_FOLDER/SECURITY.md -+rm -rf $SNOWBRIDGE_FOLDER/.gitignore -+rm -rf $SNOWBRIDGE_FOLDER/templates -+rm -rf $SNOWBRIDGE_FOLDER/pallets/ethereum-client/fuzz -+ -+pushd $SNOWBRIDGE_FOLDER -+ -+# let's test if everything we need compiles -+cargo check -p snowbridge-pallet-ethereum-client -+cargo check -p snowbridge-pallet-ethereum-client --features runtime-benchmarks -+cargo check -p snowbridge-pallet-ethereum-client --features try-runtime -+cargo check -p snowbridge-pallet-inbound-queue -+cargo check -p snowbridge-pallet-inbound-queue --features runtime-benchmarks -+cargo check -p snowbridge-pallet-inbound-queue --features try-runtime -+cargo check -p snowbridge-pallet-outbound-queue -+cargo check -p snowbridge-pallet-outbound-queue --features runtime-benchmarks -+cargo check -p snowbridge-pallet-outbound-queue --features try-runtime -+cargo check -p snowbridge-pallet-system -+cargo check -p snowbridge-pallet-system --features runtime-benchmarks -+cargo check -p snowbridge-pallet-system --features try-runtime -+ -+# we're removing lock file after all checks are done. Otherwise we may use different -+# Substrate/Polkadot/Cumulus commits and our checks will fail -+rm -f $SNOWBRIDGE_FOLDER/Cargo.toml -+rm -f $SNOWBRIDGE_FOLDER/Cargo.lock -+ -+popd -+ -+# Replace Parity's CI files, that we have overwritten in our fork, to run our own CI -+rm -rf .github -+git remote -v | grep -w parity || git remote add parity https://github.com/paritytech/polkadot-sdk -+git fetch parity master -+git checkout parity/master -- .github -+git add -- .github -+ -+echo "OK" -diff --git a/bridges/snowbridge/templates/benchmarking-fixtures.mustache b/bridges/snowbridge/templates/benchmarking-fixtures.mustache -new file mode 100644 -index 00000000000..abeab79a532 ---- /dev/null -+++ b/bridges/snowbridge/templates/benchmarking-fixtures.mustache -@@ -0,0 +1,179 @@ -+// Generated, do not edit! -+// See README.md for instructions to generate -+use crate::{ -+ CheckpointUpdate, ExecutionHeaderUpdate, Update, -+}; -+use hex_literal::hex; -+use primitives::{ -+ types::deneb, updates::AncestryProof, BeaconHeader, NextSyncCommitteeUpdate, SyncAggregate, -+ SyncCommittee, VersionedExecutionPayloadHeader, -+}; -+use sp_core::U256; -+use sp_std::{boxed::Box, vec}; -+ -+pub fn make_checkpoint() -> Box { -+ Box::new(CheckpointUpdate { -+ header: BeaconHeader { -+ slot: {{CheckpointUpdate.Header.Slot}}, -+ proposer_index: {{CheckpointUpdate.Header.ProposerIndex}}, -+ parent_root: hex!("{{CheckpointUpdate.Header.ParentRoot}}").into(), -+ state_root: hex!("{{CheckpointUpdate.Header.StateRoot}}").into(), -+ body_root: hex!("{{CheckpointUpdate.Header.BodyRoot}}").into(), -+ }, -+ current_sync_committee: SyncCommittee { -+ pubkeys: [ -+ {{#CheckpointUpdate.CurrentSyncCommittee.Pubkeys}} -+ hex!("{{.}}").into(), -+ {{/CheckpointUpdate.CurrentSyncCommittee.Pubkeys}} -+ ], -+ aggregate_pubkey: hex!("{{CheckpointUpdate.CurrentSyncCommittee.AggregatePubkey}}").into(), -+ }, -+ current_sync_committee_branch: vec![ -+ {{#CheckpointUpdate.CurrentSyncCommitteeBranch}} -+ hex!("{{.}}").into(), -+ {{/CheckpointUpdate.CurrentSyncCommitteeBranch}} -+ ], -+ validators_root: hex!("{{CheckpointUpdate.ValidatorsRoot}}").into(), -+ block_roots_root: hex!("{{CheckpointUpdate.BlockRootsRoot}}").into(), -+ block_roots_branch: vec![ -+ {{#CheckpointUpdate.BlockRootsBranch}} -+ hex!("{{.}}").into(), -+ {{/CheckpointUpdate.BlockRootsBranch}} -+ ], -+ }) -+} -+ -+pub fn make_sync_committee_update() -> Box { -+ Box::new(Update { -+ attested_header: BeaconHeader { -+ slot: {{SyncCommitteeUpdate.AttestedHeader.Slot}}, -+ proposer_index: {{SyncCommitteeUpdate.AttestedHeader.ProposerIndex}}, -+ parent_root: hex!("{{SyncCommitteeUpdate.AttestedHeader.ParentRoot}}").into(), -+ state_root: hex!("{{SyncCommitteeUpdate.AttestedHeader.StateRoot}}").into(), -+ body_root: hex!("{{SyncCommitteeUpdate.AttestedHeader.BodyRoot}}").into(), -+ }, -+ sync_aggregate: SyncAggregate{ -+ sync_committee_bits: hex!("{{SyncCommitteeUpdate.SyncAggregate.SyncCommitteeBits}}"), -+ sync_committee_signature: hex!("{{SyncCommitteeUpdate.SyncAggregate.SyncCommitteeSignature}}").into(), -+ }, -+ signature_slot: {{SyncCommitteeUpdate.SignatureSlot}}, -+ next_sync_committee_update: Some(NextSyncCommitteeUpdate { -+ next_sync_committee: SyncCommittee { -+ pubkeys: [ -+ {{#SyncCommitteeUpdate.NextSyncCommitteeUpdate.NextSyncCommittee.Pubkeys}} -+ hex!("{{.}}").into(), -+ {{/SyncCommitteeUpdate.NextSyncCommitteeUpdate.NextSyncCommittee.Pubkeys}} -+ ], -+ aggregate_pubkey: hex!("{{SyncCommitteeUpdate.NextSyncCommitteeUpdate.NextSyncCommittee.AggregatePubkey}}").into(), -+ }, -+ next_sync_committee_branch: vec![ -+ {{#SyncCommitteeUpdate.NextSyncCommitteeUpdate.NextSyncCommitteeBranch}} -+ hex!("{{.}}").into(), -+ {{/SyncCommitteeUpdate.NextSyncCommitteeUpdate.NextSyncCommitteeBranch}} -+ ], -+ }), -+ finalized_header: BeaconHeader{ -+ slot: {{SyncCommitteeUpdate.FinalizedHeader.Slot}}, -+ proposer_index: {{SyncCommitteeUpdate.FinalizedHeader.ProposerIndex}}, -+ parent_root: hex!("{{SyncCommitteeUpdate.FinalizedHeader.ParentRoot}}").into(), -+ state_root: hex!("{{SyncCommitteeUpdate.FinalizedHeader.StateRoot}}").into(), -+ body_root: hex!("{{SyncCommitteeUpdate.FinalizedHeader.BodyRoot}}").into(), -+ }, -+ finality_branch: vec![ -+ {{#SyncCommitteeUpdate.FinalityBranch}} -+ hex!("{{.}}").into(), -+ {{/SyncCommitteeUpdate.FinalityBranch}} -+ ], -+ block_roots_root: hex!("{{SyncCommitteeUpdate.BlockRootsRoot}}").into(), -+ block_roots_branch: vec![ -+ {{#SyncCommitteeUpdate.BlockRootsBranch}} -+ hex!("{{.}}").into(), -+ {{/SyncCommitteeUpdate.BlockRootsBranch}} -+ ], -+ }) -+} -+ -+pub fn make_finalized_header_update() -> Box { -+ Box::new(Update { -+ attested_header: BeaconHeader { -+ slot: {{FinalizedHeaderUpdate.AttestedHeader.Slot}}, -+ proposer_index: {{FinalizedHeaderUpdate.AttestedHeader.ProposerIndex}}, -+ parent_root: hex!("{{FinalizedHeaderUpdate.AttestedHeader.ParentRoot}}").into(), -+ state_root: hex!("{{FinalizedHeaderUpdate.AttestedHeader.StateRoot}}").into(), -+ body_root: hex!("{{FinalizedHeaderUpdate.AttestedHeader.BodyRoot}}").into(), -+ }, -+ sync_aggregate: SyncAggregate{ -+ sync_committee_bits: hex!("{{FinalizedHeaderUpdate.SyncAggregate.SyncCommitteeBits}}"), -+ sync_committee_signature: hex!("{{FinalizedHeaderUpdate.SyncAggregate.SyncCommitteeSignature}}").into(), -+ }, -+ signature_slot: {{FinalizedHeaderUpdate.SignatureSlot}}, -+ next_sync_committee_update: None, -+ finalized_header: BeaconHeader { -+ slot: {{FinalizedHeaderUpdate.FinalizedHeader.Slot}}, -+ proposer_index: {{FinalizedHeaderUpdate.FinalizedHeader.ProposerIndex}}, -+ parent_root: hex!("{{FinalizedHeaderUpdate.FinalizedHeader.ParentRoot}}").into(), -+ state_root: hex!("{{FinalizedHeaderUpdate.FinalizedHeader.StateRoot}}").into(), -+ body_root: hex!("{{FinalizedHeaderUpdate.FinalizedHeader.BodyRoot}}").into(), -+ }, -+ finality_branch: vec![ -+ {{#FinalizedHeaderUpdate.FinalityBranch}} -+ hex!("{{.}}").into(), -+ {{/FinalizedHeaderUpdate.FinalityBranch}} -+ ], -+ block_roots_root: hex!("{{FinalizedHeaderUpdate.BlockRootsRoot}}").into(), -+ block_roots_branch: vec![ -+ {{#FinalizedHeaderUpdate.BlockRootsBranch}} -+ hex!("{{.}}").into(), -+ {{/FinalizedHeaderUpdate.BlockRootsBranch}} -+ ] -+ }) -+} -+ -+pub fn make_execution_header_update() -> Box { -+ Box::new(ExecutionHeaderUpdate { -+ header: BeaconHeader { -+ slot: {{HeaderUpdate.Header.Slot}}, -+ proposer_index: {{HeaderUpdate.Header.ProposerIndex}}, -+ parent_root: hex!("{{HeaderUpdate.Header.ParentRoot}}").into(), -+ state_root: hex!("{{HeaderUpdate.Header.StateRoot}}").into(), -+ body_root: hex!("{{HeaderUpdate.Header.BodyRoot}}").into(), -+ }, -+ {{#HeaderUpdate.AncestryProof}} -+ ancestry_proof: Some(AncestryProof { -+ header_branch: vec![ -+ {{#HeaderUpdate.AncestryProof.HeaderBranch}} -+ hex!("{{.}}").into(), -+ {{/HeaderUpdate.AncestryProof.HeaderBranch}} -+ ], -+ finalized_block_root: hex!("{{HeaderUpdate.AncestryProof.FinalizedBlockRoot}}").into(), -+ }), -+ {{/HeaderUpdate.AncestryProof}} -+ {{^HeaderUpdate.AncestryProof}} -+ ancestry_proof: None, -+ {{/HeaderUpdate.AncestryProof}} -+ execution_header: VersionedExecutionPayloadHeader::Deneb(deneb::ExecutionPayloadHeader { -+ parent_hash: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.ParentHash}}").into(), -+ fee_recipient: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.FeeRecipient}}").into(), -+ state_root: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.StateRoot}}").into(), -+ receipts_root: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.ReceiptsRoot}}").into(), -+ logs_bloom: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.LogsBloom}}").into(), -+ prev_randao: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.PrevRandao}}").into(), -+ block_number: {{HeaderUpdate.ExecutionHeader.Deneb.BlockNumber}}, -+ gas_limit: {{HeaderUpdate.ExecutionHeader.Deneb.GasLimit}}, -+ gas_used: {{HeaderUpdate.ExecutionHeader.Deneb.GasUsed}}, -+ timestamp: {{HeaderUpdate.ExecutionHeader.Deneb.Timestamp}}, -+ extra_data: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.ExtraData}}").into(), -+ base_fee_per_gas: U256::from({{HeaderUpdate.ExecutionHeader.Deneb.BaseFeePerGas}}u64), -+ block_hash: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.BlockHash}}").into(), -+ transactions_root: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.TransactionRoot}}").into(), -+ withdrawals_root: hex!("{{HeaderUpdate.ExecutionHeader.Deneb.WithdrawalsRoot}}").into(), -+ blob_gas_used: {{HeaderUpdate.ExecutionHeader.Deneb.BlobGasUsed}}, -+ excess_blob_gas: {{HeaderUpdate.ExecutionHeader.Deneb.ExcessBlobGas}}, -+ }), -+ execution_branch: vec![ -+ {{#HeaderUpdate.ExecutionBranch}} -+ hex!("{{.}}").into(), -+ {{/HeaderUpdate.ExecutionBranch}} -+ ], -+ }) -+} -diff --git a/bridges/snowbridge/templates/module-weight-template.hbs b/bridges/snowbridge/templates/module-weight-template.hbs -new file mode 100644 -index 00000000000..5919a7cc7c1 ---- /dev/null -+++ b/bridges/snowbridge/templates/module-weight-template.hbs -@@ -0,0 +1,74 @@ -+{{header}} -+//! Autogenerated weights for `{{pallet}}` -+//! -+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}} -+//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: `{{cmd.repeat}}`, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}` -+//! WORST CASE MAP SIZE: `{{cmd.worst_case_map_values}}` -+//! HOSTNAME: `{{hostname}}`, CPU: `{{cpuname}}` -+//! WASM-EXECUTION: `{{cmd.wasm_execution}}`, CHAIN: `{{cmd.chain}}`, DB CACHE: `{{cmd.db_cache}}` -+ -+// Executed Command: -+{{#each args as |arg|}} -+// {{arg}} -+{{/each}} -+ -+#![cfg_attr(rustfmt, rustfmt_skip)] -+#![allow(unused_parens)] -+#![allow(unused_imports)] -+#![allow(missing_docs)] -+ -+use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; -+use core::marker::PhantomData; -+ -+/// Weight functions needed for `{{pallet}}`. -+pub trait WeightInfo { -+ {{#each benchmarks as |benchmark|}} -+ fn {{benchmark.name~}} -+ ( -+ {{~#each benchmark.components as |c| ~}} -+ {{c.name}}: u32, {{/each~}} -+ ) -> Weight; -+ {{/each}} -+} -+ -+// For backwards compatibility and tests. -+impl WeightInfo for () { -+ {{#each benchmarks as |benchmark|}} -+ {{#each benchmark.comments as |comment|}} -+ /// {{comment}} -+ {{/each}} -+ {{#each benchmark.component_ranges as |range|}} -+ /// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`. -+ {{/each}} -+ fn {{benchmark.name~}} -+ ( -+ {{~#each benchmark.components as |c| ~}} -+ {{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}} -+ ) -> Weight { -+ // Proof Size summary in bytes: -+ // Measured: `{{benchmark.base_recorded_proof_size}}{{#each benchmark.component_recorded_proof_size as |cp|}} + {{cp.name}} * ({{cp.slope}} ±{{underscore cp.error}}){{/each}}` -+ // Estimated: `{{benchmark.base_calculated_proof_size}}{{#each benchmark.component_calculated_proof_size as |cp|}} + {{cp.name}} * ({{cp.slope}} ±{{underscore cp.error}}){{/each}}` -+ // Minimum execution time: {{underscore benchmark.min_execution_time}}_000 picoseconds. -+ Weight::from_parts({{underscore benchmark.base_weight}}, {{benchmark.base_calculated_proof_size}}) -+ {{#each benchmark.component_weight as |cw|}} -+ // Standard Error: {{underscore cw.error}} -+ .saturating_add(Weight::from_parts({{underscore cw.slope}}, 0).saturating_mul({{cw.name}}.into())) -+ {{/each}} -+ {{#if (ne benchmark.base_reads "0")}} -+ .saturating_add(RocksDbWeight::get().reads({{benchmark.base_reads}}_u64)) -+ {{/if}} -+ {{#each benchmark.component_reads as |cr|}} -+ .saturating_add(RocksDbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into()))) -+ {{/each}} -+ {{#if (ne benchmark.base_writes "0")}} -+ .saturating_add(RocksDbWeight::get().writes({{benchmark.base_writes}}_u64)) -+ {{/if}} -+ {{#each benchmark.component_writes as |cw|}} -+ .saturating_add(RocksDbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into()))) -+ {{/each}} -+ {{#each benchmark.component_calculated_proof_size as |cp|}} -+ .saturating_add(Weight::from_parts(0, {{cp.slope}}).saturating_mul({{cp.name}}.into())) -+ {{/each}} -+ } -+ {{/each}} -+} -diff --git a/bridges/snowbridge/templates/register_token.mustache b/bridges/snowbridge/templates/register_token.mustache -new file mode 100644 -index 00000000000..e8d35be42ec ---- /dev/null -+++ b/bridges/snowbridge/templates/register_token.mustache -@@ -0,0 +1,45 @@ -+// SPDX-License-Identifier: Apache-2.0 -+// SPDX-FileCopyrightText: 2023 Snowfork -+// Generated, do not edit! -+// See ethereum client README.md for instructions to generate -+ -+use crate::InboundQueueFixture; -+use hex_literal::hex; -+use snowbridge_beacon_primitives::CompactExecutionHeader; -+use snowbridge_core::inbound::{Log, Message, Proof}; -+use sp_std::vec; -+ -+pub fn make_register_token_message() -> InboundQueueFixture { -+ InboundQueueFixture { -+ execution_header: CompactExecutionHeader{ -+ parent_hash: hex!("{{InboundMessageTest.ExecutionHeader.ParentHash}}").into(), -+ block_number: {{InboundMessageTest.ExecutionHeader.BlockNumber}}, -+ state_root: hex!("{{InboundMessageTest.ExecutionHeader.StateRoot}}").into(), -+ receipts_root: hex!("{{InboundMessageTest.ExecutionHeader.ReceiptsRoot}}").into(), -+ }, -+ message: Message { -+ event_log: Log { -+ address: hex!("{{InboundMessageTest.Message.EventLog.Address}}").into(), -+ topics: vec![ -+ {{#InboundMessageTest.Message.EventLog.Topics}} -+ hex!("{{.}}").into(), -+ {{/InboundMessageTest.Message.EventLog.Topics}} -+ ], -+ data: hex!("{{InboundMessageTest.Message.EventLog.Data}}").into(), -+ }, -+ proof: Proof { -+ block_hash: hex!("{{InboundMessageTest.Message.Proof.BlockHash}}").into(), -+ tx_index: {{InboundMessageTest.Message.Proof.TxIndex}}, -+ data: (vec![ -+ {{#InboundMessageTest.Message.Proof.Data.Keys}} -+ hex!("{{.}}").to_vec(), -+ {{/InboundMessageTest.Message.Proof.Data.Keys}} -+ ], vec![ -+ {{#InboundMessageTest.Message.Proof.Data.Values}} -+ hex!("{{.}}").to_vec(), -+ {{/InboundMessageTest.Message.Proof.Data.Values}} -+ ]), -+ }, -+ }, -+ } -+} -diff --git a/bridges/snowbridge/templates/send_token.mustache b/bridges/snowbridge/templates/send_token.mustache -new file mode 100644 -index 00000000000..e104d2da279 ---- /dev/null -+++ b/bridges/snowbridge/templates/send_token.mustache -@@ -0,0 +1,45 @@ -+// SPDX-License-Identifier: Apache-2.0 -+// SPDX-FileCopyrightText: 2023 Snowfork -+// Generated, do not edit! -+// See ethereum client README.md for instructions to generate -+ -+use crate::InboundQueueFixture; -+use hex_literal::hex; -+use snowbridge_beacon_primitives::CompactExecutionHeader; -+use snowbridge_core::inbound::{Log, Message, Proof}; -+use sp_std::vec; -+ -+pub fn make_send_token_message() -> InboundQueueFixture { -+ InboundQueueFixture { -+ execution_header: CompactExecutionHeader{ -+ parent_hash: hex!("{{InboundMessageTest.ExecutionHeader.ParentHash}}").into(), -+ block_number: {{InboundMessageTest.ExecutionHeader.BlockNumber}}, -+ state_root: hex!("{{InboundMessageTest.ExecutionHeader.StateRoot}}").into(), -+ receipts_root: hex!("{{InboundMessageTest.ExecutionHeader.ReceiptsRoot}}").into(), -+ }, -+ message: Message { -+ event_log: Log { -+ address: hex!("{{InboundMessageTest.Message.EventLog.Address}}").into(), -+ topics: vec![ -+ {{#InboundMessageTest.Message.EventLog.Topics}} -+ hex!("{{.}}").into(), -+ {{/InboundMessageTest.Message.EventLog.Topics}} -+ ], -+ data: hex!("{{InboundMessageTest.Message.EventLog.Data}}").into(), -+ }, -+ proof: Proof { -+ block_hash: hex!("{{InboundMessageTest.Message.Proof.BlockHash}}").into(), -+ tx_index: {{InboundMessageTest.Message.Proof.TxIndex}}, -+ data: (vec![ -+ {{#InboundMessageTest.Message.Proof.Data.Keys}} -+ hex!("{{.}}").to_vec(), -+ {{/InboundMessageTest.Message.Proof.Data.Keys}} -+ ], vec![ -+ {{#InboundMessageTest.Message.Proof.Data.Values}} -+ hex!("{{.}}").to_vec(), -+ {{/InboundMessageTest.Message.Proof.Data.Values}} -+ ]), -+ }, -+ }, -+ } -+} From 9222b729a2ab0a4692bf29314034c8a52f3bc5d6 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:46:54 +0200 Subject: [PATCH 032/130] change checkout order --- .github/workflows/parachain.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index fb6323c6a547..1ff90d96194b 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -28,7 +28,16 @@ jobs: steps: - uses: actions/checkout@v2 with: + repository: snowfork/snowbridge + ref: smoketests-ci + submodules: "true" + - run: ls + - uses: actions/checkout@v2 + with: + path: polkadot-sdk submodules: "true" + - run: ls + - run: cd polkadot-sdk && ls - uses: arduino/setup-protoc@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -40,14 +49,6 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} restore-keys: | ${{ runner.os }}-cargo- - - run: ls - - uses: actions/checkout@v2 - with: - repository: snowfork/snowbridge - ref: smoketests-ci - submodules: "true" - - run: ls - - run: cd polkadot-sdk && ls - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} From 4f051543051f67e0a53b7968398fe4680b6e017b Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 09:52:42 +0200 Subject: [PATCH 033/130] check what is in a dir --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 1ff90d96194b..a58abd266780 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -32,6 +32,7 @@ jobs: ref: smoketests-ci submodules: "true" - run: ls + - run: cd polkadot-sdk && ls - uses: actions/checkout@v2 with: path: polkadot-sdk From 44376fa849f7e37b80c0a8df77fbffcfdc6a5802 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 10:06:24 +0200 Subject: [PATCH 034/130] check what is in a dir --- .github/workflows/parachain.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a58abd266780..0c8344be010d 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -30,9 +30,11 @@ jobs: with: repository: snowfork/snowbridge ref: smoketests-ci + path: snowbridge submodules: "true" - run: ls - - run: cd polkadot-sdk && ls + - run: cd snowbridge && ls + - run: cd snowbridge && cd polkadot-sdk && ls - uses: actions/checkout@v2 with: path: polkadot-sdk From eb5b2ea9a8d1b6d6d99f4f5aa8937441df095abd Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 10:07:55 +0200 Subject: [PATCH 035/130] check something --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 0c8344be010d..68f39d02d96e 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -34,7 +34,7 @@ jobs: submodules: "true" - run: ls - run: cd snowbridge && ls - - run: cd snowbridge && cd polkadot-sdk && ls + - run: cd polkadot-sdk && ls - uses: actions/checkout@v2 with: path: polkadot-sdk From d74b2bc505ec86f07ccaec412ddaf08ee65ab1ba Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 10:09:13 +0200 Subject: [PATCH 036/130] check something --- .github/workflows/parachain.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 68f39d02d96e..acfecb233ad8 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -32,14 +32,10 @@ jobs: ref: smoketests-ci path: snowbridge submodules: "true" - - run: ls - - run: cd snowbridge && ls - - run: cd polkadot-sdk && ls - uses: actions/checkout@v2 with: - path: polkadot-sdk - submodules: "true" - - run: ls + path: snowbridge/polkadot-sdk + - run: cd snowbridge/polkadot-sdk && ls - run: cd polkadot-sdk && ls - uses: arduino/setup-protoc@v2 with: From 8cd8d6bc84acfa8018cb35a7f51e5c0aafd30206 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 10:11:31 +0200 Subject: [PATCH 037/130] try something --- .github/workflows/parachain.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index acfecb233ad8..6d209f9a453e 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -34,6 +34,8 @@ jobs: submodules: "true" - uses: actions/checkout@v2 with: + repository: snowfork/polkadot-sdk + ref: smoketests-ci path: snowbridge/polkadot-sdk - run: cd snowbridge/polkadot-sdk && ls - run: cd polkadot-sdk && ls From 78aa6b996e1f16a4416f987ecd36fe8226f0640c Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 10:11:58 +0200 Subject: [PATCH 038/130] try something --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 6d209f9a453e..cbc368bb88cb 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -32,6 +32,7 @@ jobs: ref: smoketests-ci path: snowbridge submodules: "true" + - run: rm -f snowbridge/polkadot-sdk - uses: actions/checkout@v2 with: repository: snowfork/polkadot-sdk From 846aecf1e724f8ee319d6e7e2b48c92420139557 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 10:13:37 +0200 Subject: [PATCH 039/130] try e2e script again --- .github/workflows/parachain.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index cbc368bb88cb..845739898d42 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -38,8 +38,6 @@ jobs: repository: snowfork/polkadot-sdk ref: smoketests-ci path: snowbridge/polkadot-sdk - - run: cd snowbridge/polkadot-sdk && ls - - run: cd polkadot-sdk && ls - uses: arduino/setup-protoc@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -57,6 +55,7 @@ jobs: - run: nix develop -c ls - name: run e2e stack run: | + cd snowbridge nix develop -c sh -c 'cd web/packages/test && ./scripts/start-services.sh' # check: # runs-on: snowbridge-runner From 56b87a337b956266051390600ea138aecdc3792c Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 10:14:58 +0200 Subject: [PATCH 040/130] remove ls --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 845739898d42..6662a072b6de 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -52,7 +52,6 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - - run: nix develop -c ls - name: run e2e stack run: | cd snowbridge From b7891e64968a1f9570c6a6539431169a26138e02 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 10:30:34 +0200 Subject: [PATCH 041/130] cleanup script --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 6662a072b6de..8d96f556bd36 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -49,6 +49,7 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} restore-keys: | ${{ runner.os }}-cargo- + - run: ls - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} From bc42d3b9d865ca67de22aaa424a5a5df08ac8e1a Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 10:49:17 +0200 Subject: [PATCH 042/130] adds ssz gen --- .github/workflows/parachain.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 8d96f556bd36..219b5fe7fff9 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -56,7 +56,11 @@ jobs: - name: run e2e stack run: | cd snowbridge - nix develop -c sh -c 'cd web/packages/test && ./scripts/start-services.sh' + nix develop -c sh -c ' + go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && + sszgen version && + cd web/packages/test && + ./scripts/start-services.sh' # check: # runs-on: snowbridge-runner # env: From 872320b2455b6ca9013ed9fd710637ea44a611d0 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 11:08:45 +0200 Subject: [PATCH 043/130] install js components --- .github/workflows/parachain.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 219b5fe7fff9..07e980da108f 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -38,6 +38,8 @@ jobs: repository: snowfork/polkadot-sdk ref: smoketests-ci path: snowbridge/polkadot-sdk + - name: pnpm install + run: (cd snowbridge/web && pnpm install) - uses: arduino/setup-protoc@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} From 4424cd6f7f317f43c209e9d6ceb99a1fde510dc2 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 11:10:40 +0200 Subject: [PATCH 044/130] install js components --- .github/workflows/parachain.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 07e980da108f..0e35c6fc533b 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -38,8 +38,6 @@ jobs: repository: snowfork/polkadot-sdk ref: smoketests-ci path: snowbridge/polkadot-sdk - - name: pnpm install - run: (cd snowbridge/web && pnpm install) - uses: arduino/setup-protoc@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -59,6 +57,7 @@ jobs: run: | cd snowbridge nix develop -c sh -c ' + (cd snowbridge/web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && sszgen version && cd web/packages/test && From 8523d80021446716a98ac566e81e50d8d2c25321 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 11:15:14 +0200 Subject: [PATCH 045/130] fix dir --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 0e35c6fc533b..0752d934be07 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -57,7 +57,7 @@ jobs: run: | cd snowbridge nix develop -c sh -c ' - (cd snowbridge/web && pnpm install) && + (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && sszgen version && cd web/packages/test && From 4b0913c426519c05c7ca2719ca1f54a3a77ac582 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 11:35:18 +0200 Subject: [PATCH 046/130] adds output dir --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 0752d934be07..760d1b6864b9 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -15,6 +15,7 @@ env: FUZZ_MAX_LEN: 10000000000 FUZZ_MAX_RUNS: 30000 RUST_NIGHTLY: "2023-05-23" + OUTPUT_DIR: tmp jobs: check: From 52ec06090230a5324e8f18dbcb31268b18d6b9d1 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 11:46:56 +0200 Subject: [PATCH 047/130] create dir --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 760d1b6864b9..a8c1088b7376 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -50,7 +50,6 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} restore-keys: | ${{ runner.os }}-cargo- - - run: ls - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} From 7ae0d5980738c4a307d8b34e48bacf8f7742e900 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 12:05:25 +0200 Subject: [PATCH 048/130] try something else --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a8c1088b7376..502896c55301 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -53,6 +53,7 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: ls - name: run e2e stack run: | cd snowbridge From e635d5ace75b00ef0de8b19c6ddb5b204ceff519 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 13:06:24 +0200 Subject: [PATCH 049/130] bump --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 502896c55301..a8c1088b7376 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -53,7 +53,6 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - - run: ls - name: run e2e stack run: | cd snowbridge From 9b651b8b313b4362ffc812452aeb86a4abb01d02 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 13:30:21 +0200 Subject: [PATCH 050/130] fix config paths --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a8c1088b7376..e1304af546d2 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -15,7 +15,7 @@ env: FUZZ_MAX_LEN: 10000000000 FUZZ_MAX_RUNS: 30000 RUST_NIGHTLY: "2023-05-23" - OUTPUT_DIR: tmp + OUTPUT_DIR: "~/work/polkadot-sdk/polkadot-sdk/tmp" jobs: check: From 04d5dac2337c4313daab49f8a97a4898b1337fef Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 13:45:07 +0200 Subject: [PATCH 051/130] test output dir --- .github/workflows/parachain.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index e1304af546d2..6e1d33805271 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -15,7 +15,6 @@ env: FUZZ_MAX_LEN: 10000000000 FUZZ_MAX_RUNS: 30000 RUST_NIGHTLY: "2023-05-23" - OUTPUT_DIR: "~/work/polkadot-sdk/polkadot-sdk/tmp" jobs: check: @@ -27,6 +26,9 @@ jobs: SKIP_WASM_BUILD: 1 RUST_NIGHTLY_VERSION: nightly-2023-05-23 steps: + - name: Set build directory environment variable + run: echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV + - run: echo "dir is $OUTPUT_DIR" - uses: actions/checkout@v2 with: repository: snowfork/snowbridge From 9cc695cce4d805c0b6d3fc9b9415711f8a2c85ee Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 14:09:05 +0200 Subject: [PATCH 052/130] adds wasm target --- .github/workflows/parachain.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 6e1d33805271..f9ff353fc307 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -55,6 +55,12 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} + - name: setup rust toolchain + run: | + rustup target add wasm32-unknown-unknown + rustup toolchain install nightly + rustup component add rustfmt --toolchain nightly + rustup show - name: run e2e stack run: | cd snowbridge From 05613d51e22bf391bec2a388101de30c92b52380 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 14:28:59 +0200 Subject: [PATCH 053/130] check wasm target --- .github/workflows/parachain.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index f9ff353fc307..a211f5842f3e 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -61,15 +61,19 @@ jobs: rustup toolchain install nightly rustup component add rustfmt --toolchain nightly rustup show - - name: run e2e stack + - name: check rust toolchain run: | cd snowbridge - nix develop -c sh -c ' - (cd web && pnpm install) && - go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && - sszgen version && - cd web/packages/test && - ./scripts/start-services.sh' + nix develop -c sh -c 'rustup show' +# - name: run e2e stack +# run: | +# cd snowbridge +# nix develop -c sh -c ' +# (cd web && pnpm install) && +# go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && +# sszgen version && +# cd web/packages/test && +# ./scripts/start-services.sh' # check: # runs-on: snowbridge-runner # env: From 11848714b13e9ec4334539c47a76deaf454bb716 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 14:35:37 +0200 Subject: [PATCH 054/130] setup rustup in nix --- .github/workflows/parachain.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a211f5842f3e..d3428218fdda 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -55,25 +55,21 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - - name: setup rust toolchain - run: | - rustup target add wasm32-unknown-unknown - rustup toolchain install nightly - rustup component add rustfmt --toolchain nightly - rustup show - name: check rust toolchain run: | cd snowbridge nix develop -c sh -c 'rustup show' -# - name: run e2e stack -# run: | -# cd snowbridge -# nix develop -c sh -c ' -# (cd web && pnpm install) && -# go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && -# sszgen version && -# cd web/packages/test && -# ./scripts/start-services.sh' + - name: run e2e stack + run: | + cd snowbridge + nix develop -c sh -c ' + rustup target add wasm32-unknown-unknown && + rustup toolchain install nightly && + rustup component add rustfmt --toolchain nightly && + rustup show && + (cd web && pnpm install) && + go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && + sszgen version # check: # runs-on: snowbridge-runner # env: From 3460acac8398ee65b7eb41b7b69818f0e7f9dc02 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 14:37:47 +0200 Subject: [PATCH 055/130] missing quote --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index d3428218fdda..76935669c8c9 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -69,7 +69,7 @@ jobs: rustup show && (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && - sszgen version + sszgen version' # check: # runs-on: snowbridge-runner # env: From d1060f08b6d8c6eb7670fca520ef752b8cc39692 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 14:40:22 +0200 Subject: [PATCH 056/130] install rustup stable --- .github/workflows/parachain.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 76935669c8c9..477c1548757d 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -63,9 +63,8 @@ jobs: run: | cd snowbridge nix develop -c sh -c ' + rustup default stable && rustup target add wasm32-unknown-unknown && - rustup toolchain install nightly && - rustup component add rustfmt --toolchain nightly && rustup show && (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && From 8fb5c9a86cada16f7967d8ee8b69f92a0ffa1eb2 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 14:43:01 +0200 Subject: [PATCH 057/130] adds e2e script in again --- .github/workflows/parachain.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 477c1548757d..43385111ad99 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -68,7 +68,9 @@ jobs: rustup show && (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && - sszgen version' + sszgen version && + cd web/packages/test && + ./scripts/start-services.sh' # check: # runs-on: snowbridge-runner # env: From 58723ce1abc7163a9f2cbf24ea473b460e401e76 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 15:00:57 +0200 Subject: [PATCH 058/130] remove skip wasm flag --- .github/workflows/parachain.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 43385111ad99..a1ffef1d3e51 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -23,8 +23,6 @@ jobs: CARGO_INCREMENTAL: 0 RUST_BACKTRACE: 1 RUSTFLAGS: -C debuginfo=1 - SKIP_WASM_BUILD: 1 - RUST_NIGHTLY_VERSION: nightly-2023-05-23 steps: - name: Set build directory environment variable run: echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV From 8eec2afa7a79166b094570c1775e1c3244a8f021 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 15:38:22 +0200 Subject: [PATCH 059/130] comment out things --- .github/workflows/parachain.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a1ffef1d3e51..073b90240320 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -69,6 +69,11 @@ jobs: sszgen version && cd web/packages/test && ./scripts/start-services.sh' + - name: Upload log file as an artifact + uses: actions/upload-artifact@v3 + with: + name: lodestar.log + path: $OUTPUT_DIR # check: # runs-on: snowbridge-runner # env: From f0bfc750b0a828ffba64f30510b1098c56777a76 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 15:42:48 +0200 Subject: [PATCH 060/130] start lodestar --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 073b90240320..d57af5a2b6af 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -69,6 +69,7 @@ jobs: sszgen version && cd web/packages/test && ./scripts/start-services.sh' + - run: ls - name: Upload log file as an artifact uses: actions/upload-artifact@v3 with: From 90a3b3d78648630e2d9218732ec763d8eeda5a78 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 15:48:38 +0200 Subject: [PATCH 061/130] print out log --- .github/workflows/parachain.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index d57af5a2b6af..49f1cbc7fbcc 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -53,10 +53,6 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - - name: check rust toolchain - run: | - cd snowbridge - nix develop -c sh -c 'rustup show' - name: run e2e stack run: | cd snowbridge From 22587aa7da25457c30f30ce5b178e84f328baa10 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 15:53:18 +0200 Subject: [PATCH 062/130] print out log --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 49f1cbc7fbcc..be46b3e85796 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -65,7 +65,6 @@ jobs: sszgen version && cd web/packages/test && ./scripts/start-services.sh' - - run: ls - name: Upload log file as an artifact uses: actions/upload-artifact@v3 with: From cad257aac60816635e5d397dfc821cfe7bdf3e9f Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 15:58:28 +0200 Subject: [PATCH 063/130] print out lodestar --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index be46b3e85796..49f1cbc7fbcc 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -65,6 +65,7 @@ jobs: sszgen version && cd web/packages/test && ./scripts/start-services.sh' + - run: ls - name: Upload log file as an artifact uses: actions/upload-artifact@v3 with: From c7d35849b4aad1a62c8255f407c562afd10a00f4 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 16:04:30 +0200 Subject: [PATCH 064/130] check geth version --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 49f1cbc7fbcc..be46b3e85796 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -65,7 +65,6 @@ jobs: sszgen version && cd web/packages/test && ./scripts/start-services.sh' - - run: ls - name: Upload log file as an artifact uses: actions/upload-artifact@v3 with: From 24f0c52f0b334f8a3b233206bc17ced01d568573 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 16:22:53 +0200 Subject: [PATCH 065/130] bump --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index be46b3e85796..49f1cbc7fbcc 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -65,6 +65,7 @@ jobs: sszgen version && cd web/packages/test && ./scripts/start-services.sh' + - run: ls - name: Upload log file as an artifact uses: actions/upload-artifact@v3 with: From 1deaf4fefc1550264870037acf632cecf896ba90 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 20:16:26 +0200 Subject: [PATCH 066/130] remove commented out code --- .github/workflows/parachain.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 49f1cbc7fbcc..239804c2189f 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -65,12 +65,7 @@ jobs: sszgen version && cd web/packages/test && ./scripts/start-services.sh' - - run: ls - - name: Upload log file as an artifact - uses: actions/upload-artifact@v3 - with: - name: lodestar.log - path: $OUTPUT_DIR + # check: # runs-on: snowbridge-runner # env: From dfac5ee84523c338331c4f1253c31b459efc0396 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 20:42:48 +0200 Subject: [PATCH 067/130] update go files --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 239804c2189f..7d3c6627091a 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -65,6 +65,7 @@ jobs: sszgen version && cd web/packages/test && ./scripts/start-services.sh' + - run: ls # check: # runs-on: snowbridge-runner From d636caaf889a6a9e9c5e2b8dee287d91d20a84d0 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 21:34:58 +0200 Subject: [PATCH 068/130] adds smoketests --- .github/workflows/parachain.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 7d3c6627091a..1327981e1103 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -64,7 +64,9 @@ jobs: go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && sszgen version && cd web/packages/test && - ./scripts/start-services.sh' + ./scripts/start-services.sh > "$OUTPUT_DIR/start-services.log" 2>&1 && + ./scripts/check-relayer.sh && + ./scripts/run-smoketests.sh' - run: ls # check: From a136784ad51ee811d4a975ec21241ef1e7fe41ed Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 21:45:51 +0200 Subject: [PATCH 069/130] create dir --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 1327981e1103..5a9f3866e788 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Set build directory environment variable run: echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV - - run: echo "dir is $OUTPUT_DIR" + - run: mkdir -p $OUTPUT_DIR - uses: actions/checkout@v2 with: repository: snowfork/snowbridge From 70328c251f0c1d2ae35ac120746d63d52588e09a Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 21:52:54 +0200 Subject: [PATCH 070/130] adjust scripts --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 5a9f3866e788..d70151d56e3a 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -62,7 +62,6 @@ jobs: rustup show && (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && - sszgen version && cd web/packages/test && ./scripts/start-services.sh > "$OUTPUT_DIR/start-services.log" 2>&1 && ./scripts/check-relayer.sh && From 9b15a6bc77402a05a3400463c0b2803f24673469 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 22:00:25 +0200 Subject: [PATCH 071/130] only redirect start-services.sh output --- .github/workflows/parachain.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index d70151d56e3a..a9620c12343c 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -62,10 +62,10 @@ jobs: rustup show && (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && - cd web/packages/test && + (cd web/packages/test && ./scripts/start-services.sh > "$OUTPUT_DIR/start-services.log" 2>&1 && - ./scripts/check-relayer.sh && - ./scripts/run-smoketests.sh' + { ./scripts/check-relayer.sh; ./scripts/run-smoketests.sh; } + )' - run: ls # check: From f4cf9f7facea04bdf702ab125e80b58193a82361 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 22:07:14 +0200 Subject: [PATCH 072/130] only redirect start-services.sh output --- .github/workflows/parachain.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a9620c12343c..97e1fb16576f 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -62,10 +62,10 @@ jobs: rustup show && (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && - (cd web/packages/test && - ./scripts/start-services.sh > "$OUTPUT_DIR/start-services.log" 2>&1 && - { ./scripts/check-relayer.sh; ./scripts/run-smoketests.sh; } - )' + (./scripts/start-services.sh > "$OUTPUT_DIR/start-services.log" 2>&1 &) && + sleep 10 && + ./scripts/check-relayer.sh && + ./scripts/run-smoketests.sh' - run: ls # check: From ae2f1bb053e6a3659691ad12c3ed40754658f890 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 22:11:35 +0200 Subject: [PATCH 073/130] switch dir --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 97e1fb16576f..05a8f9245c91 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -62,6 +62,7 @@ jobs: rustup show && (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && + cd web/packages/test && (./scripts/start-services.sh > "$OUTPUT_DIR/start-services.log" 2>&1 &) && sleep 10 && ./scripts/check-relayer.sh && From f64a5ca3943381ce8697116fb141db309303e28d Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 22:19:36 +0200 Subject: [PATCH 074/130] permissions --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 05a8f9245c91..9850060c73fc 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -67,7 +67,6 @@ jobs: sleep 10 && ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' - - run: ls # check: # runs-on: snowbridge-runner From 2e5db0bdbeb769d1a7cf3170a8320358f91b55e2 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 22:25:48 +0200 Subject: [PATCH 075/130] check script --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 9850060c73fc..05a8f9245c91 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -67,6 +67,7 @@ jobs: sleep 10 && ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' + - run: ls # check: # runs-on: snowbridge-runner From 514c101e9bbe92afb581d1ba44a009fb979a930e Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 14 Feb 2024 22:31:50 +0200 Subject: [PATCH 076/130] allow service to be down --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 05a8f9245c91..9850060c73fc 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -67,7 +67,6 @@ jobs: sleep 10 && ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' - - run: ls # check: # runs-on: snowbridge-runner From eb6f74d33668715d249d2773dc0b131159d03c64 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 07:22:31 +0200 Subject: [PATCH 077/130] bump --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 9850060c73fc..05a8f9245c91 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -67,6 +67,7 @@ jobs: sleep 10 && ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' + - run: ls # check: # runs-on: snowbridge-runner From ab8afb61b50c236e044e854dc91bdbf982f097b2 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 09:44:26 +0200 Subject: [PATCH 078/130] last run, hopefully --- .github/workflows/parachain.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 05a8f9245c91..ce9883131628 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -67,7 +67,12 @@ jobs: sleep 10 && ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' - - run: ls + continue-on-error: true + - name: Save start-services log file + uses: actions/upload-artifact@v3 + with: + name: start-services.log + path: $OUTPUT_DIR # check: # runs-on: snowbridge-runner From 0f8255ece4662db42d3995cbc63716d69ef02124 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 10:28:20 +0200 Subject: [PATCH 079/130] fix tests --- .github/workflows/parachain.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index ce9883131628..e6dd1c76de0e 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -17,12 +17,14 @@ env: RUST_NIGHTLY: "2023-05-23" jobs: - check: + e2e_run: runs-on: snowbridge-runner env: CARGO_INCREMENTAL: 0 RUST_BACKTRACE: 1 RUSTFLAGS: -C debuginfo=1 + outputs: + success: ${{ steps.run_e2e_stack.outcome == 'success' }} steps: - name: Set build directory environment variable run: echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV @@ -54,6 +56,7 @@ jobs: with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - name: run e2e stack + id: run_e2e_stack run: | cd snowbridge nix develop -c sh -c ' @@ -68,12 +71,20 @@ jobs: ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' continue-on-error: true + - name: Save start-services log file uses: actions/upload-artifact@v3 with: name: start-services.log - path: $OUTPUT_DIR - + path: $OUTPUT_DIR/start-services.log + e2e_status: + needs: e2e_run + runs-on: snowbridge-runner + if: needs.e2e_run.outputs.success != 'true' + steps: + - run: echo "E2E tests failed" + - name: Fail the workflow + run: exit 1 # check: # runs-on: snowbridge-runner # env: From 9936aba02804a06e9ba73e54c4342a9bde864b10 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 20:00:58 +0200 Subject: [PATCH 080/130] fixes --- .github/workflows/parachain.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index e6dd1c76de0e..a04c1b033a43 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -66,7 +66,7 @@ jobs: (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && cd web/packages/test && - (./scripts/start-services.sh > "$OUTPUT_DIR/start-services.log" 2>&1 &) && + (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && sleep 10 && ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' @@ -76,7 +76,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: start-services.log - path: $OUTPUT_DIR/start-services.log + path: ${{ env.OUTPUT_DIR }}/start-services.log e2e_status: needs: e2e_run runs-on: snowbridge-runner From 3b80f6d6360e88c084d124e31d41c25ba44b94dd Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 21:02:45 +0200 Subject: [PATCH 081/130] bump --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a04c1b033a43..26101fe1d79d 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -77,6 +77,7 @@ jobs: with: name: start-services.log path: ${{ env.OUTPUT_DIR }}/start-services.log + - run: ls e2e_status: needs: e2e_run runs-on: snowbridge-runner From 384e6a907c9c5208b91d7b49c7bb0fe066bd524a Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 21:45:23 +0200 Subject: [PATCH 082/130] fix --- .github/workflows/parachain.yml | 40 +++++++++++++++++---------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 26101fe1d79d..d5b3b7f345ba 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -66,26 +66,28 @@ jobs: (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && cd web/packages/test && - (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && - sleep 10 && - ./scripts/check-relayer.sh && - ./scripts/run-smoketests.sh' - continue-on-error: true + ./scripts/start-services.sh' +# (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && +# sleep 10 && +# ./scripts/check-relayer.sh && +# ./scripts/run-smoketests.sh' +# continue-on-error: true + +# - name: Save start-services log file +# uses: actions/upload-artifact@v3 +# with: +# name: start-services.log +# path: ${{ env.OUTPUT_DIR }}/start-services.log +# - run: ls +# e2e_status: +# needs: e2e_run +# runs-on: snowbridge-runner +# if: needs.e2e_run.outputs.success != 'true' +# steps: +# - run: echo "E2E tests failed" +# - name: Fail the workflow +# run: exit 1 - - name: Save start-services log file - uses: actions/upload-artifact@v3 - with: - name: start-services.log - path: ${{ env.OUTPUT_DIR }}/start-services.log - - run: ls - e2e_status: - needs: e2e_run - runs-on: snowbridge-runner - if: needs.e2e_run.outputs.success != 'true' - steps: - - run: echo "E2E tests failed" - - name: Fail the workflow - run: exit 1 # check: # runs-on: snowbridge-runner # env: From 7c3a3f0f29632688126f71878b21618ef0f0e8b6 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 22:13:58 +0200 Subject: [PATCH 083/130] check lodestar --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index d5b3b7f345ba..8d9cc82a9fba 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -78,7 +78,6 @@ jobs: # with: # name: start-services.log # path: ${{ env.OUTPUT_DIR }}/start-services.log -# - run: ls # e2e_status: # needs: e2e_run # runs-on: snowbridge-runner From 98a25f7f94491a46cf21f2b453a824fd450c36b7 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 22:14:39 +0200 Subject: [PATCH 084/130] check lodestar --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 8d9cc82a9fba..d5b3b7f345ba 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -78,6 +78,7 @@ jobs: # with: # name: start-services.log # path: ${{ env.OUTPUT_DIR }}/start-services.log +# - run: ls # e2e_status: # needs: e2e_run # runs-on: snowbridge-runner From bb95e4969fed582ef916a12df81e3dd54279681e Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 22:18:47 +0200 Subject: [PATCH 085/130] check lodestar --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index d5b3b7f345ba..8d9cc82a9fba 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -78,7 +78,6 @@ jobs: # with: # name: start-services.log # path: ${{ env.OUTPUT_DIR }}/start-services.log -# - run: ls # e2e_status: # needs: e2e_run # runs-on: snowbridge-runner From 0fd49f3fe591b020b828a1708c9add0feb7174ad Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 22:25:43 +0200 Subject: [PATCH 086/130] bump --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 8d9cc82a9fba..09bf7d6588ca 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -72,7 +72,7 @@ jobs: # ./scripts/check-relayer.sh && # ./scripts/run-smoketests.sh' # continue-on-error: true - +# # - name: Save start-services log file # uses: actions/upload-artifact@v3 # with: From 9117b5dda9ea86167e599baae89fa37393159a22 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 22:33:26 +0200 Subject: [PATCH 087/130] bump --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 09bf7d6588ca..83eed5e8a15d 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -86,7 +86,6 @@ jobs: # - run: echo "E2E tests failed" # - name: Fail the workflow # run: exit 1 - # check: # runs-on: snowbridge-runner # env: From fd6d39e3a8a2de0206f03d7779737495ef2927bc Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 22:39:28 +0200 Subject: [PATCH 088/130] try again --- .github/workflows/parachain.yml | 39 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 83eed5e8a15d..dd615bb419be 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -66,26 +66,25 @@ jobs: (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && cd web/packages/test && - ./scripts/start-services.sh' -# (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && -# sleep 10 && -# ./scripts/check-relayer.sh && -# ./scripts/run-smoketests.sh' -# continue-on-error: true -# -# - name: Save start-services log file -# uses: actions/upload-artifact@v3 -# with: -# name: start-services.log -# path: ${{ env.OUTPUT_DIR }}/start-services.log -# e2e_status: -# needs: e2e_run -# runs-on: snowbridge-runner -# if: needs.e2e_run.outputs.success != 'true' -# steps: -# - run: echo "E2E tests failed" -# - name: Fail the workflow -# run: exit 1 + (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && + sleep 10 && + ./scripts/check-relayer.sh && + ./scripts/run-smoketests.sh' + continue-on-error: true + + - name: Save start-services log file + uses: actions/upload-artifact@v3 + with: + name: start-services.log + path: ./tmp/start-services.log + e2e_status: + needs: e2e_run + runs-on: snowbridge-runner + if: needs.e2e_run.outputs.success != 'true' + steps: + - run: echo "E2E tests failed" + - name: Fail the workflow + run: exit 1 # check: # runs-on: snowbridge-runner # env: From f810c312b8f86e254bfcd456bc94a4c536e886d6 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 15 Feb 2024 22:42:05 +0200 Subject: [PATCH 089/130] try again --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index dd615bb419be..ce403efcb87c 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -71,6 +71,7 @@ jobs: ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' continue-on-error: true + - run: ls - name: Save start-services log file uses: actions/upload-artifact@v3 From 0031c547a04ad918579057dab9e08e453a7b6c65 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 16 Feb 2024 08:07:06 +0200 Subject: [PATCH 090/130] bump --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index ce403efcb87c..a280b4e7bb12 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -78,6 +78,7 @@ jobs: with: name: start-services.log path: ./tmp/start-services.log + - run: ls e2e_status: needs: e2e_run runs-on: snowbridge-runner From 0b13f828bdbc8f6d902a72ead214fb44ed8bef79 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 16 Feb 2024 08:35:01 +0200 Subject: [PATCH 091/130] bump --- .github/workflows/parachain.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a280b4e7bb12..598b2699479e 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -66,10 +66,11 @@ jobs: (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && cd web/packages/test && - (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && - sleep 10 && - ./scripts/check-relayer.sh && - ./scripts/run-smoketests.sh' + ./scripts/start-services.sh' + # (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && + # sleep 10 && + # ./scripts/check-relayer.sh && + # ./scripts/run-smoketests.sh' continue-on-error: true - run: ls From 538ff08dc2fd8677de95113dfdcecdf66bb826e3 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 16 Feb 2024 09:03:14 +0200 Subject: [PATCH 092/130] update go --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 598b2699479e..f7062412845a 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -79,7 +79,6 @@ jobs: with: name: start-services.log path: ./tmp/start-services.log - - run: ls e2e_status: needs: e2e_run runs-on: snowbridge-runner From 6fe75f9ce9c31d9785d2c0248c42ba6ae2d8e3f8 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 16 Feb 2024 09:29:48 +0200 Subject: [PATCH 093/130] update go --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index f7062412845a..598b2699479e 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -79,6 +79,7 @@ jobs: with: name: start-services.log path: ./tmp/start-services.log + - run: ls e2e_status: needs: e2e_run runs-on: snowbridge-runner From 8299e51d6f51fa3899acc3eb1c04d60a5b00a085 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 16 Feb 2024 10:52:01 +0200 Subject: [PATCH 094/130] cleanup --- .github/workflows/parachain.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 598b2699479e..3f5f47612bfe 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -66,14 +66,11 @@ jobs: (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && cd web/packages/test && - ./scripts/start-services.sh' - # (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && - # sleep 10 && - # ./scripts/check-relayer.sh && - # ./scripts/run-smoketests.sh' + (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && + sleep 10 && + ./scripts/check-relayer.sh && + ./scripts/run-smoketests.sh' continue-on-error: true - - run: ls - - name: Save start-services log file uses: actions/upload-artifact@v3 with: From 34ab578c18055d426235091c8a3d686f27482aa4 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 16 Feb 2024 11:33:55 +0200 Subject: [PATCH 095/130] check what is happening now --- .github/workflows/parachain.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 3f5f47612bfe..b52aa1584394 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -66,10 +66,11 @@ jobs: (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && cd web/packages/test && - (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && - sleep 10 && - ./scripts/check-relayer.sh && - ./scripts/run-smoketests.sh' + ./scripts/start-services.sh' + # (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && + # sleep 10 && + # ./scripts/check-relayer.sh && + # ./scripts/run-smoketests.sh' continue-on-error: true - name: Save start-services log file uses: actions/upload-artifact@v3 From 97c6836c1c5ee44d977254aa51352d1e52b065c3 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 16 Feb 2024 12:58:56 +0200 Subject: [PATCH 096/130] lodestar should run the background --- .github/workflows/parachain.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index b52aa1584394..3f5f47612bfe 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -66,11 +66,10 @@ jobs: (cd web && pnpm install) && go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && cd web/packages/test && - ./scripts/start-services.sh' - # (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && - # sleep 10 && - # ./scripts/check-relayer.sh && - # ./scripts/run-smoketests.sh' + (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && + sleep 10 && + ./scripts/check-relayer.sh && + ./scripts/run-smoketests.sh' continue-on-error: true - name: Save start-services log file uses: actions/upload-artifact@v3 From 9c455ab5fcc9a0afcc8eb673b87d79a514d73f4f Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 20 Feb 2024 14:24:00 +0200 Subject: [PATCH 097/130] run init.sh --- .github/workflows/parachain.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 3f5f47612bfe..442ee38136ad 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -60,11 +60,7 @@ jobs: run: | cd snowbridge nix develop -c sh -c ' - rustup default stable && - rustup target add wasm32-unknown-unknown && - rustup show && - (cd web && pnpm install) && - go install github.com/ferranbt/fastssz/sszgen@v0.1.3 && + ./scripts/init.sh && cd web/packages/test && (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && sleep 10 && From b5037efee3b3fce6af2bcdec4602f3c81a5f65b2 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 20 Feb 2024 14:33:20 +0200 Subject: [PATCH 098/130] check what happens with the download --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 442ee38136ad..e681b5f14228 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -72,7 +72,6 @@ jobs: with: name: start-services.log path: ./tmp/start-services.log - - run: ls e2e_status: needs: e2e_run runs-on: snowbridge-runner From 8ae71d35d2ff2f683d1848f390accf5464c81036 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 20 Feb 2024 14:42:45 +0200 Subject: [PATCH 099/130] change OS check --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index e681b5f14228..442ee38136ad 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -72,6 +72,7 @@ jobs: with: name: start-services.log path: ./tmp/start-services.log + - run: ls e2e_status: needs: e2e_run runs-on: snowbridge-runner From 4867ecda599b544a0a8822554f4efa860d7b5663 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 20 Feb 2024 15:09:52 +0200 Subject: [PATCH 100/130] remove other steps to see what is happening --- .github/workflows/parachain.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 442ee38136ad..62dde0469892 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -62,10 +62,7 @@ jobs: nix develop -c sh -c ' ./scripts/init.sh && cd web/packages/test && - (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && - sleep 10 && - ./scripts/check-relayer.sh && - ./scripts/run-smoketests.sh' + ./scripts/start-services.sh' continue-on-error: true - name: Save start-services log file uses: actions/upload-artifact@v3 From 04062bf3f9f8e37fd41386bd397c06ed75df8931 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 20 Feb 2024 15:50:01 +0200 Subject: [PATCH 101/130] bump --- .github/workflows/parachain.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 62dde0469892..b91f79d6ff7b 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -64,6 +64,7 @@ jobs: cd web/packages/test && ./scripts/start-services.sh' continue-on-error: true + - run: ls - name: Save start-services log file uses: actions/upload-artifact@v3 with: From a7693784996c62660caffeb9467f034d05723a2f Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 20 Feb 2024 16:19:09 +0200 Subject: [PATCH 102/130] run smoketests --- .github/workflows/parachain.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index b91f79d6ff7b..cacc94363584 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -62,7 +62,10 @@ jobs: nix develop -c sh -c ' ./scripts/init.sh && cd web/packages/test && - ./scripts/start-services.sh' + (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && + sleep 10 && + ./scripts/check-relayer.sh && + ./scripts/run-smoketests.sh' continue-on-error: true - run: ls - name: Save start-services log file From 6cdf50e5b2a0220d118e007894fc5ce494481082 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 20 Feb 2024 16:54:23 +0200 Subject: [PATCH 103/130] run smoketests --- .github/workflows/parachain.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index cacc94363584..442ee38136ad 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -67,7 +67,6 @@ jobs: ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' continue-on-error: true - - run: ls - name: Save start-services log file uses: actions/upload-artifact@v3 with: From 3cf96602b165f38f28619d6c80d7f0926562c210 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 20 Feb 2024 19:36:29 +0200 Subject: [PATCH 104/130] cleanup jobs --- .github/workflows/parachain.yml | 530 ++++++++++++++------------------ .github/workflows/smoketest.yml | 75 +++++ 2 files changed, 308 insertions(+), 297 deletions(-) create mode 100644 .github/workflows/smoketest.yml diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 442ee38136ad..a0ea23250cb1 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -7,7 +7,7 @@ on: - "!bridges/snowbridge/README.md" - "!bridges/snowbridge/LICENSE" branches: - - main + - snowbridge pull_request: workflow_dispatch: @@ -17,30 +17,79 @@ env: RUST_NIGHTLY: "2023-05-23" jobs: - e2e_run: + check: runs-on: snowbridge-runner env: CARGO_INCREMENTAL: 0 RUST_BACKTRACE: 1 RUSTFLAGS: -C debuginfo=1 - outputs: - success: ${{ steps.run_e2e_stack.outcome == 'success' }} + SKIP_WASM_BUILD: 1 + RUST_NIGHTLY_VERSION: nightly-2023-05-23 steps: - - name: Set build directory environment variable - run: echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV - - run: mkdir -p $OUTPUT_DIR - uses: actions/checkout@v2 with: - repository: snowfork/snowbridge - ref: smoketests-ci - path: snowbridge submodules: "true" - - run: rm -f snowbridge/polkadot-sdk + - uses: arduino/setup-protoc@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/cache@v1 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + - uses: actions/setup-node@v4.0.0 + with: + node-version: "18.x" + registry-url: "https://npm.pkg.github.com" + scope: "@paritytech" + - name: setup rust toolchain + run: | + rustup target add wasm32-unknown-unknown + curl -LO https://github.com/paritytech/rustc-rv32e-toolchain/releases/download/v1.1.0/rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst + tar -I zstd -xf rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst + mv rve-nightly ~/.rustup/toolchains/ + rustup toolchain install nightly + rustup component add rustfmt --toolchain nightly + rustup show + - name: cargo check + run: cargo check --workspace --all-features + - name: clippy + run: cargo clippy --all-features -- -D warnings + - name: format + run: cargo +nightly fmt --all -- --check + - name: install taplo + run: | + cargo install taplo-cli --locked + - name: taplo + run: taplo format --check --config .config/taplo.toml + - name: install zepter + run: | + cargo install zepter -f --locked + - name: zepter + run: zepter run check + - name: lint-markdown + run: | + npm install -g markdownlint-cli + markdownlint --version + markdownlint --config .github/.markdownlint.yaml --ignore target + + test: + needs: check + runs-on: snowbridge-runner + env: + CARGO_INCREMENTAL: 0 + RUST_BACKTRACE: 1 + RUSTFLAGS: -C debuginfo=1 + SKIP_WASM_BUILD: 1 + RUST_MIN_STACK: 8388608 + steps: - uses: actions/checkout@v2 with: - repository: snowfork/polkadot-sdk - ref: smoketests-ci - path: snowbridge/polkadot-sdk + ref: ${{ github.head_ref }} + submodules: "true" - uses: arduino/setup-protoc@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -52,290 +101,177 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} restore-keys: | ${{ runner.os }}-cargo- - - uses: cachix/install-nix-action@v22 + - name: setup rust toolchain + run: rustup show + # Increase stack limit for beacon light client tests + - run: sudo prlimit --pid $$ --stack=32768 + # Run tests for runtime-benchmarks feature + - name: Tests for runtime-benchmarks + working-directory: bridges/snowbridge + run: > + cargo test + --workspace + --features runtime-benchmarks + # Run tests for all features + - name: Tests for all features + working-directory: bridges/snowbridge + run: > + cargo test + --workspace + --all-features + + coverage: + needs: check + runs-on: snowbridge-runner + env: + CARGO_INCREMENTAL: 0 + RUST_BACKTRACE: 1 + RUSTFLAGS: -C debuginfo=1 + SKIP_WASM_BUILD: 1 + RUST_MIN_STACK: 8388608 + steps: + - uses: actions/checkout@v2 with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - - name: run e2e stack - id: run_e2e_stack - run: | - cd snowbridge - nix develop -c sh -c ' - ./scripts/init.sh && - cd web/packages/test && - (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && - sleep 10 && - ./scripts/check-relayer.sh && - ./scripts/run-smoketests.sh' - continue-on-error: true - - name: Save start-services log file - uses: actions/upload-artifact@v3 + ref: ${{ github.head_ref }} + submodules: "true" + - uses: arduino/setup-protoc@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: setup rust toolchain + run: rustup show + - name: run coverage test + working-directory: bridges/snowbridge + run: > + cargo install cargo-tarpaulin@0.27.0 && + cargo tarpaulin + --workspace + --engine llvm + --out xml + - name: Upload coverage reports to Codecov with GitHub Action + uses: codecov/codecov-action@v3 with: - name: start-services.log - path: ./tmp/start-services.log - - run: ls - e2e_status: - needs: e2e_run + working-directory: bridges/snowbridge + files: cobertura.xml + flags: rust + + check-cumulus: runs-on: snowbridge-runner - if: needs.e2e_run.outputs.success != 'true' steps: - - run: echo "E2E tests failed" - - name: Fail the workflow - run: exit 1 -# check: -# runs-on: snowbridge-runner -# env: -# CARGO_INCREMENTAL: 0 -# RUST_BACKTRACE: 1 -# RUSTFLAGS: -C debuginfo=1 -# SKIP_WASM_BUILD: 1 -# RUST_NIGHTLY_VERSION: nightly-2023-05-23 -# steps: -# - uses: actions/checkout@v2 -# with: -# submodules: "true" -# - uses: arduino/setup-protoc@v2 -# with: -# repo-token: ${{ secrets.GITHUB_TOKEN }} -# - uses: actions/cache@v1 -# with: -# path: | -# ~/.cargo/registry -# ~/.cargo/git -# key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} -# restore-keys: | -# ${{ runner.os }}-cargo- -# - uses: actions/setup-node@v4.0.0 -# with: -# node-version: "18.x" -# registry-url: "https://npm.pkg.github.com" -# scope: "@paritytech" -# - name: setup rust toolchain -# run: | -# rustup target add wasm32-unknown-unknown -# curl -LO https://github.com/paritytech/rustc-rv32e-toolchain/releases/download/v1.1.0/rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst -# tar -I zstd -xf rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst -# mv rve-nightly ~/.rustup/toolchains/ -# rustup toolchain install nightly -# rustup component add rustfmt --toolchain nightly -# rustup show -# - name: cargo check -# run: cargo check --workspace --all-features -# - name: clippy -# run: cargo clippy --all-features -- -D warnings -# - name: format -# run: cargo +nightly fmt --all -- --check -# - name: install taplo -# run: | -# cargo install taplo-cli --locked -# - name: taplo -# run: taplo format --check --config .config/taplo.toml -# - name: install zepter -# run: | -# cargo install zepter -f --locked -# - name: zepter -# run: zepter run check -# - name: lint-markdown -# run: | -# npm install -g markdownlint-cli -# markdownlint --version -# markdownlint --config .github/.markdownlint.yaml --ignore target -# -# test: -# needs: check -# runs-on: snowbridge-runner -# env: -# CARGO_INCREMENTAL: 0 -# RUST_BACKTRACE: 1 -# RUSTFLAGS: -C debuginfo=1 -# SKIP_WASM_BUILD: 1 -# RUST_MIN_STACK: 8388608 -# steps: -# - uses: actions/checkout@v2 -# with: -# ref: ${{ github.head_ref }} -# submodules: "true" -# - uses: arduino/setup-protoc@v2 -# with: -# repo-token: ${{ secrets.GITHUB_TOKEN }} -# - uses: actions/cache@v1 -# with: -# path: | -# ~/.cargo/registry -# ~/.cargo/git -# key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} -# restore-keys: | -# ${{ runner.os }}-cargo- -# - name: setup rust toolchain -# run: rustup show -# # Increase stack limit for beacon light client tests -# - run: sudo prlimit --pid $$ --stack=32768 -# # Run tests for runtime-benchmarks feature -# - name: Tests for runtime-benchmarks -# working-directory: bridges/snowbridge -# run: > -# cargo test -# --workspace -# --features runtime-benchmarks -# # Run tests for all features -# - name: Tests for all features -# working-directory: bridges/snowbridge -# run: > -# cargo test -# --workspace -# --all-features -# -# coverage: -# needs: check -# runs-on: snowbridge-runner -# env: -# CARGO_INCREMENTAL: 0 -# RUST_BACKTRACE: 1 -# RUSTFLAGS: -C debuginfo=1 -# SKIP_WASM_BUILD: 1 -# RUST_MIN_STACK: 8388608 -# steps: -# - uses: actions/checkout@v2 -# with: -# ref: ${{ github.head_ref }} -# submodules: "true" -# - uses: arduino/setup-protoc@v2 -# with: -# repo-token: ${{ secrets.GITHUB_TOKEN }} -# - name: setup rust toolchain -# run: rustup show -# - name: run coverage test -# working-directory: bridges/snowbridge -# run: > -# cargo install cargo-tarpaulin@0.27.0 && -# cargo tarpaulin -# --workspace -# --engine llvm -# --out xml -# - name: Upload coverage reports to Codecov with GitHub Action -# uses: codecov/codecov-action@v3 -# with: -# working-directory: bridges/snowbridge -# files: cobertura.xml -# flags: rust -# -# check-cumulus: -# runs-on: snowbridge-runner -# steps: -# - uses: actions/checkout@v2 -# with: -# submodules: "true" -# - uses: arduino/setup-protoc@v2 -# with: -# repo-token: ${{ secrets.GITHUB_TOKEN }} -# - name: setup rust toolchain -# run: rustup show -# - name: check bridge-hub fast-runtime -# run: > -# cargo check -# --release --verbose -# --package bridge-hub-rococo-runtime -# --features fast-runtime -# - name: check bridge-hub runtime-benchmarks -# run: > -# cargo check -# --release --verbose -# --package bridge-hub-rococo-runtime -# --features runtime-benchmarks -# - name: check bridge-hub try-runtime -# run: > -# cargo check -# --release --verbose -# --package bridge-hub-rococo-runtime -# --features try-runtime -# - name: check bridge-hub all features -# run: > -# cargo check -# --release --verbose -# --package bridge-hub-rococo-runtime -# --all-features -# - name: check asset-hub all features -# run: > -# cargo check -# --release --verbose -# --package asset-hub-rococo-runtime -# --all-features -# -# runtime-tests: -# needs: check -# runs-on: snowbridge-runner -# steps: -# - uses: actions/checkout@v2 -# with: -# submodules: "true" -# - uses: arduino/setup-protoc@v2 -# with: -# repo-token: ${{ secrets.GITHUB_TOKEN }} -# - name: setup rust toolchain -# run: rustup show -# - name: snowbridge runtime tests -# run: > -# RUST_LOG=xcm=trace cargo test -# --package bridge-hub-rococo-runtime -# --test snowbridge -# -- --nocapture -# -# integration-tests: -# needs: check -# runs-on: snowbridge-runner -# steps: -# - uses: actions/checkout@v2 -# with: -# submodules: "true" -# - uses: arduino/setup-protoc@v2 -# with: -# repo-token: ${{ secrets.GITHUB_TOKEN }} -# - name: setup rust toolchain -# run: rustup show -# - name: bridge-hub and asset-hub integration tests -# run: > -# RUST_LOG=xcm=trace cargo test -# -p bridge-hub-rococo-integration-tests -# -p asset-hub-rococo-integration-tests -# -- --nocapture -# -# beacon-fuzz: -# if: false -# needs: test -# runs-on: snowbridge-runner -# env: -# CARGO_INCREMENTAL: 0 -# RUST_BACKTRACE: 1 -# RUSTFLAGS: -C debuginfo=1 -# SKIP_WASM_BUILD: 1 -# steps: -# - uses: actions/checkout@v2 -# with: -# ref: ${{ github.head_ref }} -# submodules: "true" -# - uses: actions/cache@v1 -# with: -# path: | -# ~/.cargo/registry -# ~/.cargo/git -# key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} -# restore-keys: | -# ${{ runner.os }}-cargo- -# - name: install nightly -# run: rustup install --profile minimal nightly-$RUST_NIGHTLY -# - name: Install cargo-fuzz from crates.io -# uses: baptiste0928/cargo-install@v2 -# with: -# crate: cargo-fuzz -# version: "^0.11.2" -# - name: Fuzz force checkpoint extrinsic -# run: > -# cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_force_checkpoint -- -# -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS -# - name: Fuzz submit extrinsic -# run: > -# cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_submit -- -# -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS -# - name: Fuzz submit execution header extrinsic -# run: > -# cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_submit_execution_header -- -# -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS + - uses: actions/checkout@v2 + with: + submodules: "true" + - uses: arduino/setup-protoc@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: setup rust toolchain + run: rustup show + - name: check bridge-hub fast-runtime + run: > + cargo check + --release --verbose + --package bridge-hub-rococo-runtime + --features fast-runtime + - name: check bridge-hub runtime-benchmarks + run: > + cargo check + --release --verbose + --package bridge-hub-rococo-runtime + --features runtime-benchmarks + - name: check bridge-hub try-runtime + run: > + cargo check + --release --verbose + --package bridge-hub-rococo-runtime + --features try-runtime + - name: check bridge-hub all features + run: > + cargo check + --release --verbose + --package bridge-hub-rococo-runtime + --all-features + - name: check asset-hub all features + run: > + cargo check + --release --verbose + --package asset-hub-rococo-runtime + --all-features + + runtime-tests: + needs: check + runs-on: snowbridge-runner + steps: + - uses: actions/checkout@v2 + with: + submodules: "true" + - uses: arduino/setup-protoc@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: setup rust toolchain + run: rustup show + - name: snowbridge runtime tests + run: > + RUST_LOG=xcm=trace cargo test + --package bridge-hub-rococo-runtime + --test snowbridge + -- --nocapture + + integration-tests: + needs: check + runs-on: snowbridge-runner + steps: + - uses: actions/checkout@v2 + with: + submodules: "true" + - uses: arduino/setup-protoc@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: setup rust toolchain + run: rustup show + - name: bridge-hub and asset-hub integration tests + run: > + RUST_LOG=xcm=trace cargo test + -p bridge-hub-rococo-integration-tests + -p asset-hub-rococo-integration-tests + -- --nocapture + + beacon-fuzz: + if: false + needs: test + runs-on: snowbridge-runner + env: + CARGO_INCREMENTAL: 0 + RUST_BACKTRACE: 1 + RUSTFLAGS: -C debuginfo=1 + SKIP_WASM_BUILD: 1 + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + submodules: "true" + - uses: actions/cache@v1 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + - name: install nightly + run: rustup install --profile minimal nightly-$RUST_NIGHTLY + - name: Install cargo-fuzz from crates.io + uses: baptiste0928/cargo-install@v2 + with: + crate: cargo-fuzz + version: "^0.11.2" + - name: Fuzz force checkpoint extrinsic + run: > + cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_force_checkpoint -- + -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS + - name: Fuzz submit extrinsic + run: > + cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_submit -- + -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS + - name: Fuzz submit execution header extrinsic + run: > + cd bridges/snowbridge/pallets/ethereum-beacon-client && cargo +nightly-$RUST_NIGHTLY fuzz run fuzz_submit_execution_header -- + -max_len=$FUZZ_MAX_LEN -runs=$FUZZ_MAX_RUNS diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml new file mode 100644 index 000000000000..b44ac24274be --- /dev/null +++ b/.github/workflows/smoketest.yml @@ -0,0 +1,75 @@ +name: bridge + +on: + push: + paths: + - "bridges/snowbridge/**" + - "!bridges/snowbridge/README.md" + - "!bridges/snowbridge/LICENSE" + branches: + - snowbridge + pull_request: + workflow_dispatch: + +jobs: + smoketests: + runs-on: snowbridge-runner + env: + CARGO_INCREMENTAL: 0 + RUST_BACKTRACE: 1 + RUSTFLAGS: -C debuginfo=1 + outputs: + success: ${{ steps.run_e2e_stack.outcome == 'success' }} + steps: + - name: Set build directory environment variable + run: echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV + - run: mkdir -p $OUTPUT_DIR + - uses: actions/checkout@v2 + with: + repository: snowfork/snowbridge + ref: smoketests-ci + path: snowbridge + submodules: "true" + - run: rm -f snowbridge/polkadot-sdk + - uses: actions/checkout@v2 + with: + repository: snowfork/polkadot-sdk + ref: smoketests-ci + path: snowbridge/polkadot-sdk + - uses: arduino/setup-protoc@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - 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: run E2E stack + id: run_e2e_stack + run: | + cd snowbridge + nix develop -c sh -c ' + ./scripts/init.sh && + cd web/packages/test && + echo "DIR IS: ${{ env.OUTPUT_DIR }}" && + (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && + sleep 10 && + ./scripts/check-relayer.sh && + ./scripts/run-smoketests.sh' + continue-on-error: true + - name: Save start-services log file + uses: actions/upload-artifact@v3 + with: + name: start-services.log + path: "${{ env.OUTPUT_DIR }}/start-services.log" + - name: check E2E test outcome + if: ${{ steps.run_e2e_stack.outcome != 'success' }} + run: | + echo "E2E tests failed" + exit 1 From cba5126569ac4c2f77edea5fe67bddc3ab03a5a9 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 23 Feb 2024 09:18:54 +0200 Subject: [PATCH 105/130] extract ethereum chain id --- bridges/snowbridge/runtime/test-common/src/lib.rs | 9 +++++++-- .../bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bridges/snowbridge/runtime/test-common/src/lib.rs b/bridges/snowbridge/runtime/test-common/src/lib.rs index 29b0e738c182..1ce210cacf6a 100644 --- a/bridges/snowbridge/runtime/test-common/src/lib.rs +++ b/bridges/snowbridge/runtime/test-common/src/lib.rs @@ -40,6 +40,7 @@ where } pub fn send_transfer_token_message( + ethereum_chain_id: u32, assethub_parachain_id: u32, weth_contract_address: H160, destination_address: H160, @@ -89,7 +90,7 @@ where WithdrawAsset(Assets::from(vec![fee.clone()])), BuyExecution { fees: fee, weight_limit: Unlimited }, ExportMessage { - network: Ethereum { chain_id: 11155111 }, + network: Ethereum { chain_id: ethereum_chain_id }, destination: Here, xcm: inner_xcm, }, @@ -249,6 +250,7 @@ pub fn ethereum_outbound_queue_processes_messages_before_message_queue_works< initial_fund::(assethub_parachain_id, 5_000_000_000_000); let outcome = send_transfer_token_message::( + ethereum_chain_id, assethub_parachain_id, weth_contract_address, destination_address, @@ -290,6 +292,7 @@ pub fn ethereum_outbound_queue_processes_messages_before_message_queue_works< } pub fn send_unpaid_transfer_token_message( + ethereum_chain_id: u32, collator_session_key: CollatorSessionKeys, runtime_para_id: u32, assethub_parachain_id: u32, @@ -353,7 +356,7 @@ pub fn send_unpaid_transfer_token_message( let xcm = Xcm(vec![ UnpaidExecution { weight_limit: Unlimited, check_origin: None }, ExportMessage { - network: Ethereum { chain_id: 11155111 }, + network: Ethereum { chain_id: ethereum_chain_id }, destination: Here, xcm: inner_xcm, }, @@ -375,6 +378,7 @@ pub fn send_unpaid_transfer_token_message( #[allow(clippy::too_many_arguments)] pub fn send_transfer_token_message_failure( + ethereum_chain_id: u32, collator_session_key: CollatorSessionKeys, runtime_para_id: u32, assethub_parachain_id: u32, @@ -414,6 +418,7 @@ pub fn send_transfer_token_message_failure( initial_fund::(assethub_parachain_id, initial_amount); let outcome = send_transfer_token_message::( + ethereum_chain_id, assethub_parachain_id, weth_contract_address, destination_address, diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs index b9f43624b652..154b3c18da12 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs @@ -69,6 +69,7 @@ pub fn transfer_token_to_ethereum_works() { #[test] pub fn unpaid_transfer_token_to_ethereum_fails_with_barrier() { snowbridge_runtime_test_common::send_unpaid_transfer_token_message::( + 11155111, collator_session_keys(), 1013, 1000, @@ -80,6 +81,7 @@ pub fn unpaid_transfer_token_to_ethereum_fails_with_barrier() { #[test] pub fn transfer_token_to_ethereum_fee_not_enough() { snowbridge_runtime_test_common::send_transfer_token_message_failure::( + 11155111, collator_session_keys(), 1013, 1000, @@ -95,6 +97,7 @@ pub fn transfer_token_to_ethereum_fee_not_enough() { #[test] pub fn transfer_token_to_ethereum_insufficient_fund() { snowbridge_runtime_test_common::send_transfer_token_message_failure::( + 11155111, collator_session_keys(), 1013, 1000, From d6a443c4ebc14238d46ee07a046e015283e59f0f Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 23 Feb 2024 10:18:29 +0200 Subject: [PATCH 106/130] remove cargo.toml --- bridges/snowbridge/Cargo.toml | 54 ----------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 bridges/snowbridge/Cargo.toml diff --git a/bridges/snowbridge/Cargo.toml b/bridges/snowbridge/Cargo.toml deleted file mode 100644 index a9e9ed9abf95..000000000000 --- a/bridges/snowbridge/Cargo.toml +++ /dev/null @@ -1,54 +0,0 @@ -[workspace.package] -authors = ["Snowfork "] -edition = "2021" -repository = "https://github.com/snowfork/polkadot-sdk.git" - -[workspace] -resolver = "2" -members = [ - "pallets/ethereum-client", - "pallets/ethereum-client/fixtures", - "pallets/inbound-queue", - "pallets/inbound-queue/fixtures", - "pallets/outbound-queue", - "pallets/outbound-queue/merkle-tree", - "pallets/outbound-queue/runtime-api", - "pallets/system", - "pallets/system/runtime-api", - "primitives/beacon", - "primitives/core", - "primitives/ethereum", - "primitives/router", - "runtime/runtime-common", - "runtime/test-common", -] - - -[workspace.lints.rust] -suspicious_double_ref_op = { level = "allow", priority = 2 } - -[workspace.lints.clippy] -all = { level = "allow", priority = 0 } -correctness = { level = "warn", priority = 1 } -complexity = { level = "warn", priority = 1 } -if-same-then-else = { level = "allow", priority = 2 } -zero-prefixed-literal = { level = "allow", priority = 2 } # 00_1000_000 -type_complexity = { level = "allow", priority = 2 } # raison d'etre -nonminimal-bool = { level = "allow", priority = 2 } # maybe -borrowed-box = { level = "allow", priority = 2 } # Reasonable to fix this one -too-many-arguments = { level = "allow", priority = 2 } # (Turning this on would lead to) -needless-lifetimes = { level = "allow", priority = 2 } # generated code -unnecessary_cast = { level = "allow", priority = 2 } # Types may change -identity-op = { level = "allow", priority = 2 } # One case where we do 0 + -useless_conversion = { level = "allow", priority = 2 } # Types may change -unit_arg = { level = "allow", priority = 2 } # stylistic -option-map-unit-fn = { level = "allow", priority = 2 } # stylistic -bind_instead_of_map = { level = "allow", priority = 2 } # stylistic -erasing_op = { level = "allow", priority = 2 } # E.g. 0 * DOLLARS -eq_op = { level = "allow", priority = 2 } # In tests we test equality. -while_immutable_condition = { level = "allow", priority = 2 } # false positives -needless_option_as_deref = { level = "allow", priority = 2 } # false positives -derivable_impls = { level = "allow", priority = 2 } # false positives -stable_sort_primitive = { level = "allow", priority = 2 } # prefer stable sort -extra-unused-type-parameters = { level = "allow", priority = 2 } # stylistic -default_constructed_unit_structs = { level = "allow", priority = 2 } # stylistic From ef010b844ad9125e0b6dd7592564bf8ebb43f60e Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 23 Feb 2024 10:40:23 +0200 Subject: [PATCH 107/130] fix chain id data type --- bridges/snowbridge/runtime/test-common/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/snowbridge/runtime/test-common/src/lib.rs b/bridges/snowbridge/runtime/test-common/src/lib.rs index 1ce210cacf6a..b9b441650182 100644 --- a/bridges/snowbridge/runtime/test-common/src/lib.rs +++ b/bridges/snowbridge/runtime/test-common/src/lib.rs @@ -40,7 +40,7 @@ where } pub fn send_transfer_token_message( - ethereum_chain_id: u32, + ethereum_chain_id: u64, assethub_parachain_id: u32, weth_contract_address: H160, destination_address: H160, @@ -292,7 +292,7 @@ pub fn ethereum_outbound_queue_processes_messages_before_message_queue_works< } pub fn send_unpaid_transfer_token_message( - ethereum_chain_id: u32, + ethereum_chain_id: u64, collator_session_key: CollatorSessionKeys, runtime_para_id: u32, assethub_parachain_id: u32, @@ -378,7 +378,7 @@ pub fn send_unpaid_transfer_token_message( #[allow(clippy::too_many_arguments)] pub fn send_transfer_token_message_failure( - ethereum_chain_id: u32, + ethereum_chain_id: u64, collator_session_key: CollatorSessionKeys, runtime_para_id: u32, assethub_parachain_id: u32, From 71e41ba7124b6a50ed6cfdc20da7c182cd5c2c8e Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 23 Feb 2024 11:08:02 +0200 Subject: [PATCH 108/130] fix missing chain id param --- bridges/snowbridge/runtime/test-common/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bridges/snowbridge/runtime/test-common/src/lib.rs b/bridges/snowbridge/runtime/test-common/src/lib.rs index b9b441650182..9b0edca3bfa5 100644 --- a/bridges/snowbridge/runtime/test-common/src/lib.rs +++ b/bridges/snowbridge/runtime/test-common/src/lib.rs @@ -108,6 +108,7 @@ where } pub fn send_transfer_token_message_success( + ethereum_chain_id: u64, collator_session_key: CollatorSessionKeys, runtime_para_id: u32, assethub_parachain_id: u32, @@ -150,6 +151,7 @@ pub fn send_transfer_token_message_success( initial_fund::(assethub_parachain_id, 5_000_000_000_000); let outcome = send_transfer_token_message::( + ethereum_chain_id, assethub_parachain_id, weth_contract_address, destination_address, From c3fb067777f4bb21e2fd49446b38f853dd4cf8a0 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 23 Feb 2024 11:49:49 +0200 Subject: [PATCH 109/130] fix missing chain id param --- bridges/snowbridge/runtime/test-common/src/lib.rs | 1 + .../runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/bridges/snowbridge/runtime/test-common/src/lib.rs b/bridges/snowbridge/runtime/test-common/src/lib.rs index 9b0edca3bfa5..7455adf76170 100644 --- a/bridges/snowbridge/runtime/test-common/src/lib.rs +++ b/bridges/snowbridge/runtime/test-common/src/lib.rs @@ -208,6 +208,7 @@ pub fn ethereum_outbound_queue_processes_messages_before_message_queue_works< XcmConfig, AllPalletsWithoutSystem, >( + ethereum_chain_id: u64, collator_session_key: CollatorSessionKeys, runtime_para_id: u32, assethub_parachain_id: u32, diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs index 154b3c18da12..86f29d7090a9 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs @@ -149,6 +149,7 @@ pub fn ethereum_outbound_queue_processes_messages_before_message_queue_works() { XcmConfig, AllPalletsWithoutSystem, >( + 11155111, collator_session_keys(), 1013, 1000, From af78a7a69d14f86ec7f3985434d7d7c1096856ae Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 23 Feb 2024 13:32:46 +0200 Subject: [PATCH 110/130] fix coverage and missing param --- .github/workflows/parachain.yml | 2 -- .../runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a0ea23250cb1..4b6856a67f86 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -140,7 +140,6 @@ jobs: - name: setup rust toolchain run: rustup show - name: run coverage test - working-directory: bridges/snowbridge run: > cargo install cargo-tarpaulin@0.27.0 && cargo tarpaulin @@ -150,7 +149,6 @@ jobs: - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v3 with: - working-directory: bridges/snowbridge files: cobertura.xml flags: rust diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs index 86f29d7090a9..239bd946e759 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/snowbridge.rs @@ -51,6 +51,7 @@ fn collator_session_keys() -> bridge_hub_test_utils::CollatorSessionKeys( + 11155111, collator_session_keys(), 1013, 1000, From db1238e991ac30c0ee93f7aef3ffeca3b7a0ea1d Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 23 Feb 2024 16:08:14 +0200 Subject: [PATCH 111/130] fix CI --- .github/workflows/parachain.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 4b6856a67f86..374b4b0876a8 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -108,17 +108,11 @@ jobs: # Run tests for runtime-benchmarks feature - name: Tests for runtime-benchmarks working-directory: bridges/snowbridge - run: > - cargo test - --workspace - --features runtime-benchmarks + run: cargo test --features runtime-benchmarks # Run tests for all features - name: Tests for all features working-directory: bridges/snowbridge - run: > - cargo test - --workspace - --all-features + run: cargo test --all-features coverage: needs: check @@ -143,7 +137,6 @@ jobs: run: > cargo install cargo-tarpaulin@0.27.0 && cargo tarpaulin - --workspace --engine llvm --out xml - name: Upload coverage reports to Codecov with GitHub Action From 834657cd2e922e2c23e7b1d35d2a9ff6045f6320 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Sun, 25 Feb 2024 10:51:39 +0200 Subject: [PATCH 112/130] fix CI --- .github/workflows/parachain.yml | 6 ++++-- bridges/snowbridge/scripts/run-tests-all-features.sh | 8 ++++++++ bridges/snowbridge/scripts/run-tests-benchmarks.sh | 8 ++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 bridges/snowbridge/scripts/run-tests-all-features.sh create mode 100755 bridges/snowbridge/scripts/run-tests-benchmarks.sh diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 374b4b0876a8..6f93a99e89f4 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -103,16 +103,18 @@ jobs: ${{ runner.os }}-cargo- - name: setup rust toolchain run: rustup show + - name: install jq + run: sudo apt-get update && sudo apt-get install -y jq # Increase stack limit for beacon light client tests - run: sudo prlimit --pid $$ --stack=32768 # Run tests for runtime-benchmarks feature - name: Tests for runtime-benchmarks working-directory: bridges/snowbridge - run: cargo test --features runtime-benchmarks + run: ./scripts/run-tests-benchmarks.sh # Run tests for all features - name: Tests for all features working-directory: bridges/snowbridge - run: cargo test --all-features + run: ./scripts/run-tests-all-features.sh coverage: needs: check diff --git a/bridges/snowbridge/scripts/run-tests-all-features.sh b/bridges/snowbridge/scripts/run-tests-all-features.sh new file mode 100755 index 000000000000..359c4cd4e7c6 --- /dev/null +++ b/bridges/snowbridge/scripts/run-tests-all-features.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -eu + +for package in $(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name | startswith("snowbridge")) | .name'); do + echo "Running tests for package: $package" + cargo test -p "$package" --all-features +done diff --git a/bridges/snowbridge/scripts/run-tests-benchmarks.sh b/bridges/snowbridge/scripts/run-tests-benchmarks.sh new file mode 100755 index 000000000000..83c42c9c6135 --- /dev/null +++ b/bridges/snowbridge/scripts/run-tests-benchmarks.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -eu + +for package in $(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name | startswith("snowbridge")) | .name'); do + echo "Running benchmarks tests for package: $package" + cargo test -p "$package" --features runtime-benchmarks +done From 1e63aaeafe614cd5f5e83845933fed548af8b32b Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Sun, 25 Feb 2024 15:19:43 +0200 Subject: [PATCH 113/130] revert scripts --- .github/workflows/parachain.yml | 12 +- bridges/snowbridge/Cargo.lock | 7483 +++++++++++++++++ bridges/snowbridge/Cargo.toml | 67 + .../scripts/run-tests-all-features.sh | 8 - .../scripts/run-tests-benchmarks.sh | 8 - 5 files changed, 7558 insertions(+), 20 deletions(-) create mode 100644 bridges/snowbridge/Cargo.lock create mode 100644 bridges/snowbridge/Cargo.toml delete mode 100755 bridges/snowbridge/scripts/run-tests-all-features.sh delete mode 100755 bridges/snowbridge/scripts/run-tests-benchmarks.sh diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 6f93a99e89f4..96c1ba53b31f 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -103,18 +103,22 @@ jobs: ${{ runner.os }}-cargo- - name: setup rust toolchain run: rustup show - - name: install jq - run: sudo apt-get update && sudo apt-get install -y jq # Increase stack limit for beacon light client tests - run: sudo prlimit --pid $$ --stack=32768 # Run tests for runtime-benchmarks feature - name: Tests for runtime-benchmarks working-directory: bridges/snowbridge - run: ./scripts/run-tests-benchmarks.sh + run: > + cargo test + --workspace + --features runtime-benchmarks # Run tests for all features - name: Tests for all features working-directory: bridges/snowbridge - run: ./scripts/run-tests-all-features.sh + run: > + cargo test + --workspace + --all-features coverage: needs: check diff --git a/bridges/snowbridge/Cargo.lock b/bridges/snowbridge/Cargo.lock new file mode 100644 index 000000000000..f090b5a0395d --- /dev/null +++ b/bridges/snowbridge/Cargo.lock @@ -0,0 +1,7483 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +dependencies = [ + "lazy_static", + "regex", +] + +[[package]] +name = "addr2line" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" +dependencies = [ + "gimli 0.27.3", +] + +[[package]] +name = "addr2line" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +dependencies = [ + "gimli 0.28.1", +] + +[[package]] +name = "adler" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common", + "generic-array 0.14.7", +] + +[[package]] +name = "ahash" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +dependencies = [ + "getrandom", + "once_cell", + "version_check", +] + +[[package]] +name = "ahash" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d713b3834d76b85304d4d525563c1276e2e30dc97cc67bfb4585a4a29fc2c89f" +dependencies = [ + "cfg-if", + "getrandom", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloy-primitives" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0628ec0ba5b98b3370bb6be17b12f23bfce8ee4ad83823325a20546d9b03b78" +dependencies = [ + "alloy-rlp", + "bytes", + "cfg-if", + "const-hex", + "derive_more", + "hex-literal", + "itoa", + "proptest", + "rand", + "ruint", + "serde", + "tiny-keccak", +] + +[[package]] +name = "alloy-rlp" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d58d9f5da7b40e9bfff0b7e7816700be4019db97d4b6359fe7f94a9e22e42ac" +dependencies = [ + "alloy-rlp-derive", + "arrayvec 0.7.4", + "bytes", +] + +[[package]] +name = "alloy-rlp-derive" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a047897373be4bbb0224c1afdabca92648dc57a9c9ef6e7b0be3aff7a859c83" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "alloy-sol-macro" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a98ad1696a2e17f010ae8e43e9f2a1e930ed176a8e3ff77acfeff6dfb07b42c" +dependencies = [ + "const-hex", + "dunce", + "heck", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.50", + "syn-solidity", + "tiny-keccak", +] + +[[package]] +name = "alloy-sol-types" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98d7107bed88e8f09f0ddcc3335622d87bfb6821f3e0c7473329fb1cfad5e015" +dependencies = [ + "alloy-primitives", + "alloy-sol-macro", + "const-hex", + "serde", +] + +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "ansi_term" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" +dependencies = [ + "winapi", +] + +[[package]] +name = "anyhow" +version = "1.0.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" + +[[package]] +name = "approx" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" +dependencies = [ + "num-traits", +] + +[[package]] +name = "aquamarine" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21cc1548309245035eb18aa7f0967da6bc65587005170c56e6ef2788a4cf3f4e" +dependencies = [ + "include_dir", + "itertools", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "ark-bls12-377" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb00293ba84f51ce3bd026bd0de55899c4e68f0a39a5728cebae3a73ffdc0a4f" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-bls12-377-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20c7021f180a0cbea0380eba97c2af3c57074cdaffe0eef7e840e1c9f2841e55" +dependencies = [ + "ark-bls12-377", + "ark-ec", + "ark-models-ext", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-bls12-381" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c775f0d12169cba7aae4caeb547bb6a50781c7449a8aa53793827c9ec4abf488" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-bls12-381-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1dc4b3d08f19e8ec06e949712f95b8361e43f1391d94f65e4234df03480631c" +dependencies = [ + "ark-bls12-381", + "ark-ec", + "ark-ff 0.4.2", + "ark-models-ext", + "ark-serialize 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-bw6-761" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e0605daf0cc5aa2034b78d008aaf159f56901d92a52ee4f6ecdfdac4f426700" +dependencies = [ + "ark-bls12-377", + "ark-ec", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-bw6-761-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccee5fba47266f460067588ee1bf070a9c760bf2050c1c509982c5719aadb4f2" +dependencies = [ + "ark-bw6-761", + "ark-ec", + "ark-ff 0.4.2", + "ark-models-ext", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ec" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" +dependencies = [ + "ark-ff 0.4.2", + "ark-poly", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "derivative", + "hashbrown 0.13.2", + "itertools", + "num-traits", + "rayon", + "zeroize", +] + +[[package]] +name = "ark-ed-on-bls12-377" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b10d901b9ac4b38f9c32beacedfadcdd64e46f8d7f8e88c1ae1060022cf6f6c6" +dependencies = [ + "ark-bls12-377", + "ark-ec", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ed-on-bls12-377-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "524a4fb7540df2e1a8c2e67a83ba1d1e6c3947f4f9342cc2359fc2e789ad731d" +dependencies = [ + "ark-ec", + "ark-ed-on-bls12-377", + "ark-ff 0.4.2", + "ark-models-ext", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ed-on-bls12-381-bandersnatch" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9cde0f2aa063a2a5c28d39b47761aa102bda7c13c84fc118a61b87c7b2f785c" +dependencies = [ + "ark-bls12-381", + "ark-ec", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ed-on-bls12-381-bandersnatch-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d15185f1acb49a07ff8cbe5f11a1adc5a93b19e211e325d826ae98e98e124346" +dependencies = [ + "ark-ec", + "ark-ed-on-bls12-381-bandersnatch", + "ark-ff 0.4.2", + "ark-models-ext", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ff" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b3235cc41ee7a12aaaf2c575a2ad7b46713a8a50bda2fc3b003a04845c05dd6" +dependencies = [ + "ark-ff-asm 0.3.0", + "ark-ff-macros 0.3.0", + "ark-serialize 0.3.0", + "ark-std 0.3.0", + "derivative", + "num-bigint", + "num-traits", + "paste", + "rustc_version 0.3.3", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" +dependencies = [ + "ark-ff-asm 0.4.2", + "ark-ff-macros 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "derivative", + "digest 0.10.7", + "itertools", + "num-bigint", + "num-traits", + "paste", + "rustc_version 0.4.0", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db02d390bf6643fb404d3d22d31aee1c4bc4459600aef9113833d17e786c6e44" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-asm" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fd794a08ccb318058009eefdf15bcaaaaf6f8161eb3345f907222bac38b20" +dependencies = [ + "num-bigint", + "num-traits", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-models-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e9eab5d4b5ff2f228b763d38442adc9b084b0a465409b059fac5c2308835ec2" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "derivative", +] + +[[package]] +name = "ark-poly" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" +dependencies = [ + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "derivative", + "hashbrown 0.13.2", +] + +[[package]] +name = "ark-scale" +version = "0.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f69c00b3b529be29528a6f2fd5fa7b1790f8bed81b9cdca17e326538545a179" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "parity-scale-codec", + "scale-info", +] + +[[package]] +name = "ark-secret-scalar" +version = "0.0.2" +source = "git+https://github.com/w3f/ring-vrf?rev=e9782f9#e9782f938629c90f3adb3fff2358bc8d1386af3e" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "ark-transcript", + "digest 0.10.7", + "getrandom_or_panic", + "zeroize", +] + +[[package]] +name = "ark-serialize" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6c2b318ee6e10f8c2853e73a83adc0ccb88995aa978d8a3408d492ab2ee671" +dependencies = [ + "ark-std 0.3.0", + "digest 0.9.0", +] + +[[package]] +name = "ark-serialize" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" +dependencies = [ + "ark-serialize-derive", + "ark-std 0.4.0", + "digest 0.10.7", + "num-bigint", +] + +[[package]] +name = "ark-serialize-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-std" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1df2c09229cbc5a028b1d70e00fdb2acee28b1055dfb5ca73eea49c5a25c4e7c" +dependencies = [ + "num-traits", + "rand", +] + +[[package]] +name = "ark-std" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand", + "rayon", +] + +[[package]] +name = "ark-transcript" +version = "0.0.2" +source = "git+https://github.com/w3f/ring-vrf?rev=e9782f9#e9782f938629c90f3adb3fff2358bc8d1386af3e" +dependencies = [ + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "digest 0.10.7", + "rand_core 0.6.4", + "sha3", +] + +[[package]] +name = "array-bytes" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" + +[[package]] +name = "array-bytes" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f840fb7195bcfc5e17ea40c26e5ce6d5b9ce5d584466e17703209657e459ae0" + +[[package]] +name = "arrayref" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" + +[[package]] +name = "arrayvec" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" + +[[package]] +name = "arrayvec" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" + +[[package]] +name = "asset-test-utils" +version = "7.0.0" +dependencies = [ + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", + "cumulus-primitives-core", + "frame-support", + "frame-system", + "pallet-assets", + "pallet-balances", + "pallet-collator-selection", + "pallet-session", + "pallet-timestamp", + "pallet-xcm", + "pallet-xcm-bridge-hub-router", + "parachains-common", + "parachains-runtimes-test-utils", + "parity-scale-codec", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-parachain-info", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", +] + +[[package]] +name = "assets-common" +version = "0.7.0" +dependencies = [ + "cumulus-primitives-core", + "frame-support", + "impl-trait-for-tuples", + "log", + "pallet-asset-conversion", + "pallet-xcm", + "parachains-common", + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-wasm-builder", +] + +[[package]] +name = "async-trait" +version = "0.1.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi 0.1.19", + "libc", + "winapi", +] + +[[package]] +name = "auto_impl" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "823b8bb275161044e2ac7a25879cb3e2480cb403e3943022c7c769c599b756aa" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "autocfg" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" + +[[package]] +name = "backtrace" +version = "0.3.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +dependencies = [ + "addr2line 0.21.0", + "cc", + "cfg-if", + "libc", + "miniz_oxide", + "object 0.32.2", + "rustc-demangle", +] + +[[package]] +name = "bandersnatch_vrfs" +version = "0.0.4" +source = "git+https://github.com/w3f/ring-vrf?rev=e9782f9#e9782f938629c90f3adb3fff2358bc8d1386af3e" +dependencies = [ + "ark-bls12-381", + "ark-ec", + "ark-ed-on-bls12-381-bandersnatch", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "dleq_vrf", + "fflonk", + "merlin 3.0.0", + "rand_chacha 0.3.1", + "rand_core 0.6.4", + "ring", + "sha2 0.10.8", + "sp-ark-bls12-381", + "sp-ark-ed-on-bls12-381-bandersnatch", + "zeroize", +] + +[[package]] +name = "base16ct" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" + +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + +[[package]] +name = "base64ct" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bip39" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93f2635620bf0b9d4576eb7bb9a38a55df78bd1205d26fa994b25911a69f212f" +dependencies = [ + "bitcoin_hashes", + "rand", + "rand_core 0.6.4", + "serde", + "unicode-normalization", +] + +[[package]] +name = "bit-set" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" + +[[package]] +name = "bitcoin_hashes" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90064b8dee6815a6470d60bad07bbbaee885c0e12d04177138fa3291a01b7bc4" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" + +[[package]] +name = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +dependencies = [ + "funty", + "radium", + "serde", + "tap", + "wyz", +] + +[[package]] +name = "blake2" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "blake2b_simd" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23285ad32269793932e830392f2fe2f83e26488fd3ec778883a93c8323735780" +dependencies = [ + "arrayref", + "arrayvec 0.7.4", + "constant_time_eq", +] + +[[package]] +name = "block-buffer" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" +dependencies = [ + "block-padding", + "byte-tools", + "byteorder", + "generic-array 0.12.4", +] + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "generic-array 0.14.7", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array 0.14.7", +] + +[[package]] +name = "block-padding" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" +dependencies = [ + "byte-tools", +] + +[[package]] +name = "bounded-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d32385ecb91a31bddaf908e8dcf4a15aef1bcd3913cc03ebfad02ff6d568abc1" +dependencies = [ + "log", + "parity-scale-codec", + "scale-info", + "serde", +] + +[[package]] +name = "bp-header-chain" +version = "0.7.0" +dependencies = [ + "bp-runtime", + "finality-grandpa", + "frame-support", + "parity-scale-codec", + "scale-info", + "serde", + "sp-consensus-grandpa", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "bp-messages" +version = "0.7.0" +dependencies = [ + "bp-header-chain", + "bp-runtime", + "frame-support", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-std 14.0.0", +] + +[[package]] +name = "bp-parachains" +version = "0.7.0" +dependencies = [ + "bp-header-chain", + "bp-polkadot-core", + "bp-runtime", + "frame-support", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "bp-polkadot-core" +version = "0.7.0" +dependencies = [ + "bp-messages", + "bp-runtime", + "frame-support", + "frame-system", + "parity-scale-codec", + "parity-util-mem", + "scale-info", + "serde", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "bp-relayers" +version = "0.7.0" +dependencies = [ + "bp-messages", + "bp-runtime", + "frame-support", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "bp-runtime" +version = "0.7.0" +dependencies = [ + "frame-support", + "frame-system", + "hash-db", + "impl-trait-for-tuples", + "log", + "num-traits", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-state-machine", + "sp-std 14.0.0", + "sp-trie", + "trie-db", +] + +[[package]] +name = "bp-test-utils" +version = "0.7.0" +dependencies = [ + "bp-header-chain", + "bp-parachains", + "bp-polkadot-core", + "bp-runtime", + "ed25519-dalek", + "finality-grandpa", + "parity-scale-codec", + "sp-application-crypto", + "sp-consensus-grandpa", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", + "sp-trie", +] + +[[package]] +name = "bp-xcm-bridge-hub" +version = "0.2.0" +dependencies = [ + "sp-std 14.0.0", +] + +[[package]] +name = "bp-xcm-bridge-hub-router" +version = "0.6.0" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", +] + +[[package]] +name = "bridge-hub-common" +version = "0.0.0" +dependencies = [ + "cumulus-primitives-core", + "frame-support", + "pallet-message-queue", + "parity-scale-codec", + "scale-info", + "snowbridge-core", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", +] + +[[package]] +name = "bridge-hub-test-utils" +version = "0.7.0" +dependencies = [ + "asset-test-utils", + "bp-header-chain", + "bp-messages", + "bp-polkadot-core", + "bp-relayers", + "bp-runtime", + "bp-test-utils", + "bridge-runtime-common", + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log", + "pallet-balances", + "pallet-bridge-grandpa", + "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-bridge-relayers", + "pallet-timestamp", + "pallet-utility", + "parachains-common", + "parachains-runtimes-test-utils", + "parity-scale-codec", + "sp-core", + "sp-io", + "sp-keyring", + "sp-runtime", + "sp-std 14.0.0", + "sp-tracing 16.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "bridge-runtime-common" +version = "0.7.0" +dependencies = [ + "bp-header-chain", + "bp-messages", + "bp-parachains", + "bp-polkadot-core", + "bp-relayers", + "bp-runtime", + "bp-xcm-bridge-hub", + "bp-xcm-bridge-hub-router", + "frame-support", + "frame-system", + "hash-db", + "log", + "pallet-bridge-grandpa", + "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-bridge-relayers", + "pallet-transaction-payment", + "pallet-utility", + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "sp-trie", + "staging-xcm", + "staging-xcm-builder", + "static_assertions", +] + +[[package]] +name = "bs58" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5353f36341f7451062466f0b755b96ac3a9547e4d7f6b70d603fc721a7d7896" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "build-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdce191bf3fa4995ce948c8c83b4640a1745457a149e73c6db75b4ffe36aad5f" +dependencies = [ + "semver 0.6.0", +] + +[[package]] +name = "bumpalo" +version = "3.15.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea184aa71bb362a1157c896979544cc23974e08fd265f29ea96b59f0b4a555b" + +[[package]] +name = "byte-slice-cast" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" + +[[package]] +name = "byte-tools" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" + +[[package]] +name = "bytemuck" +version = "1.14.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2ef034f05691a48569bd920a96c81b9d91bbad1ab5ac7c4616c1f6ef36cb79f" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" + +[[package]] +name = "camino" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo-platform" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "694c8807f2ae16faecc43dc17d74b3eb042482789fd0eb64b39a2e04e087053f" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" +dependencies = [ + "camino", + "cargo-platform", + "semver 1.0.22", + "serde", + "serde_json", + "thiserror", +] + +[[package]] +name = "cc" +version = "1.0.87" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3286b845d0fccbdd15af433f61c5970e711987036cb468f437ff6badd70f4e24" +dependencies = [ + "libc", +] + +[[package]] +name = "cfg-expr" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa50868b64a9a6fda9d593ce778849ea8715cd2a3d2cc17ffdb4a2f2f2f1961d" +dependencies = [ + "smallvec", +] + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "chrono" +version = "0.4.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b" +dependencies = [ + "android-tzdata", + "iana-time-zone", + "num-traits", + "windows-targets 0.52.3", +] + +[[package]] +name = "codespan-reporting" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" +dependencies = [ + "termcolor", + "unicode-width", +] + +[[package]] +name = "common" +version = "0.1.0" +source = "git+https://github.com/w3f/ring-proof#b273d33f9981e2bb3375ab45faeb537f7ee35224" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-poly", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "fflonk", + "getrandom_or_panic", + "merlin 3.0.0", + "rand_chacha 0.3.1", +] + +[[package]] +name = "common-path" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2382f75942f4b3be3690fe4f86365e9c853c1587d6ee58212cebf6e2a9ccd101" + +[[package]] +name = "console" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" +dependencies = [ + "encode_unicode", + "lazy_static", + "libc", + "unicode-width", + "windows-sys 0.52.0", +] + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if", + "wasm-bindgen", +] + +[[package]] +name = "const-hex" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efbd12d49ab0eaf8193ba9175e45f56bbc2e4b27d57b8cfe62aa47942a46b9a9" +dependencies = [ + "cfg-if", + "cpufeatures", + "hex", + "proptest", + "serde", +] + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "const-random" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aaf16c9c2c612020bcfd042e170f6e32de9b9d75adb5277cdbbd2e2c8c8299a" +dependencies = [ + "const-random-macro", +] + +[[package]] +name = "const-random-macro" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" +dependencies = [ + "getrandom", + "once_cell", + "tiny-keccak", +] + +[[package]] +name = "constant_time_eq" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" + +[[package]] +name = "constcat" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd7e35aee659887cbfb97aaf227ac12cad1a9d7c71e55ff3376839ed4e282d08" + +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + +[[package]] +name = "core-foundation-sys" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" + +[[package]] +name = "cpp_demangle" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "cpufeatures" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" +dependencies = [ + "libc", +] + +[[package]] +name = "cranelift-entity" +version = "0.95.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40099d38061b37e505e63f89bab52199037a72b931ad4868d9089ff7268660b0" +dependencies = [ + "serde", +] + +[[package]] +name = "crc32fast" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" + +[[package]] +name = "crunchy" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" + +[[package]] +name = "crypto-bigint" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" +dependencies = [ + "generic-array 0.14.7", + "rand_core 0.6.4", + "subtle", + "zeroize", +] + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array 0.14.7", + "rand_core 0.6.4", + "typenum", +] + +[[package]] +name = "crypto-mac" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" +dependencies = [ + "generic-array 0.14.7", + "subtle", +] + +[[package]] +name = "crypto-mac" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25fab6889090c8133f3deb8f73ba3c65a7f456f66436fc012a1b1e272b1e103e" +dependencies = [ + "generic-array 0.14.7", + "subtle", +] + +[[package]] +name = "cumulus-pallet-aura-ext" +version = "0.7.0" +dependencies = [ + "cumulus-pallet-parachain-system", + "frame-support", + "frame-system", + "pallet-aura", + "pallet-timestamp", + "parity-scale-codec", + "scale-info", + "sp-application-crypto", + "sp-consensus-aura", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "cumulus-pallet-parachain-system" +version = "0.7.0" +dependencies = [ + "bytes", + "cumulus-pallet-parachain-system-proc-macro", + "cumulus-primitives-core", + "cumulus-primitives-parachain-inherent", + "cumulus-primitives-proof-size-hostfunction", + "environmental", + "frame-benchmarking", + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log", + "pallet-message-queue", + "parity-scale-codec", + "polkadot-parachain-primitives", + "polkadot-runtime-parachains", + "scale-info", + "sp-core", + "sp-externalities 0.25.0", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-state-machine", + "sp-std 14.0.0", + "sp-trie", + "sp-version", + "staging-xcm", + "trie-db", +] + +[[package]] +name = "cumulus-pallet-parachain-system-proc-macro" +version = "0.6.0" +dependencies = [ + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "cumulus-pallet-session-benchmarking" +version = "9.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-session", + "parity-scale-codec", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "cumulus-pallet-xcm" +version = "0.7.0" +dependencies = [ + "cumulus-primitives-core", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", +] + +[[package]] +name = "cumulus-pallet-xcmp-queue" +version = "0.7.0" +dependencies = [ + "bounded-collections", + "bp-xcm-bridge-hub-router", + "cumulus-primitives-core", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-message-queue", + "parity-scale-codec", + "polkadot-runtime-common", + "polkadot-runtime-parachains", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-executor", +] + +[[package]] +name = "cumulus-primitives-core" +version = "0.7.0" +dependencies = [ + "parity-scale-codec", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-primitives", + "scale-info", + "sp-api", + "sp-runtime", + "sp-std 14.0.0", + "sp-trie", + "staging-xcm", +] + +[[package]] +name = "cumulus-primitives-parachain-inherent" +version = "0.7.0" +dependencies = [ + "async-trait", + "cumulus-primitives-core", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-inherents", + "sp-std 14.0.0", + "sp-trie", +] + +[[package]] +name = "cumulus-primitives-proof-size-hostfunction" +version = "0.2.0" +dependencies = [ + "sp-externalities 0.25.0", + "sp-runtime-interface 24.0.0", + "sp-trie", +] + +[[package]] +name = "cumulus-primitives-utility" +version = "0.7.0" +dependencies = [ + "cumulus-primitives-core", + "frame-support", + "log", + "pallet-asset-conversion", + "pallet-xcm-benchmarks", + "parity-scale-codec", + "polkadot-runtime-common", + "polkadot-runtime-parachains", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "cumulus-test-relay-sproof-builder" +version = "0.7.0" +dependencies = [ + "cumulus-primitives-core", + "parity-scale-codec", + "polkadot-primitives", + "sp-runtime", + "sp-state-machine", + "sp-std 14.0.0", + "sp-trie", +] + +[[package]] +name = "curve25519-dalek" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a9b85542f99a2dfa2a1b8e192662741c9859a846b296bef1c92ef9b58b5a216" +dependencies = [ + "byteorder", + "digest 0.8.1", + "rand_core 0.5.1", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" +dependencies = [ + "byteorder", + "digest 0.9.0", + "rand_core 0.5.1", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348" +dependencies = [ + "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", + "digest 0.10.7", + "fiat-crypto", + "platforms", + "rustc_version 0.4.0", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "cxx" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c15f3b597018782655a05d417f28bac009f6eb60f4b6703eb818998c1aaa16a" +dependencies = [ + "cc", + "cxxbridge-flags", + "cxxbridge-macro", + "link-cplusplus", +] + +[[package]] +name = "cxx-build" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81699747d109bba60bd6f87e7cb24b626824b8427b32f199b95c7faa06ee3dc9" +dependencies = [ + "cc", + "codespan-reporting", + "once_cell", + "proc-macro2", + "quote", + "scratch", + "syn 2.0.50", +] + +[[package]] +name = "cxxbridge-flags" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a7eb4c4fd18505f5a935f9c2ee77780350dcdb56da7cd037634e806141c5c43" + +[[package]] +name = "cxxbridge-macro" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d914fcc6452d133236ee067a9538be25ba6a644a450e1a6c617da84bf029854" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "der" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" +dependencies = [ + "const-oid", + "zeroize", +] + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "derive-syn-parse" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e79116f119dd1dba1abf1f3405f03b9b0e79a27a3883864bfebded8a3dc768cd" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "derive_more" +version = "0.99.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version 0.4.0", + "syn 1.0.109", +] + +[[package]] +name = "digest" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" +dependencies = [ + "generic-array 0.12.4", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array 0.14.7", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "const-oid", + "crypto-common", + "subtle", +] + +[[package]] +name = "dleq_vrf" +version = "0.0.2" +source = "git+https://github.com/w3f/ring-vrf?rev=e9782f9#e9782f938629c90f3adb3fff2358bc8d1386af3e" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-scale", + "ark-secret-scalar", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "ark-transcript", + "arrayvec 0.7.4", + "zeroize", +] + +[[package]] +name = "docify" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cc4fd38aaa9fb98ac70794c82a00360d1e165a87fbf96a8a91f9dfc602aaee2" +dependencies = [ + "docify_macros", +] + +[[package]] +name = "docify_macros" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63fa215f3a0d40fb2a221b3aa90d8e1fbb8379785a990cb60d62ac71ebdc6460" +dependencies = [ + "common-path", + "derive-syn-parse", + "once_cell", + "proc-macro2", + "quote", + "regex", + "syn 2.0.50", + "termcolor", + "toml", + "walkdir", +] + +[[package]] +name = "dunce" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" + +[[package]] +name = "dyn-clonable" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e9232f0e607a262ceb9bd5141a3dfb3e4db6994b31989bbfd845878cba59fd4" +dependencies = [ + "dyn-clonable-impl", + "dyn-clone", +] + +[[package]] +name = "dyn-clonable-impl" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "dyn-clone" +version = "1.0.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "545b22097d44f8a9581187cdf93de7a71e4722bf51200cfaba810865b49a495d" + +[[package]] +name = "ecdsa" +version = "0.16.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" +dependencies = [ + "der", + "digest 0.10.7", + "elliptic-curve", + "rfc6979", + "signature", + "spki", +] + +[[package]] +name = "ed25519" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" +dependencies = [ + "pkcs8", + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" +dependencies = [ + "curve25519-dalek 4.1.2", + "ed25519", + "serde", + "sha2 0.10.8", + "subtle", + "zeroize", +] + +[[package]] +name = "ed25519-zebra" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c24f403d068ad0b359e577a77f92392118be3f3c927538f2bb544a5ecd828c6" +dependencies = [ + "curve25519-dalek 3.2.0", + "hashbrown 0.12.3", + "hex", + "rand_core 0.6.4", + "sha2 0.9.9", + "zeroize", +] + +[[package]] +name = "either" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" + +[[package]] +name = "elliptic-curve" +version = "0.13.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" +dependencies = [ + "base16ct", + "crypto-bigint", + "digest 0.10.7", + "ff", + "generic-array 0.14.7", + "group", + "pkcs8", + "rand_core 0.6.4", + "sec1", + "subtle", + "zeroize", +] + +[[package]] +name = "encode_unicode" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" + +[[package]] +name = "enumflags2" +version = "0.7.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3278c9d5fb675e0a51dabcf4c0d355f692b064171535ba72361be1528a9d8e8d" +dependencies = [ + "enumflags2_derive", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c785274071b1b420972453b306eeca06acf4633829db4223b58a2a8c5953bc4" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "enumn" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fd000fd6988e73bbe993ea3db9b1aa64906ab88766d654973924340c8cddb42" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "env_logger" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "environmental" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e48c92028aaa870e83d51c64e5d4e0b6981b360c522198c23959f219a4e1b15b" + +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "errno" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "ethabi-decode" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09d398648d65820a727d6a81e58b962f874473396a047e4c30bafe3240953417" +dependencies = [ + "ethereum-types", + "tiny-keccak", +] + +[[package]] +name = "ethbloom" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c22d4b5885b6aa2fe5e8b9329fb8d232bf739e434e6b87347c63bdd00c120f60" +dependencies = [ + "crunchy", + "fixed-hash", + "impl-codec", + "impl-rlp", + "impl-serde", + "scale-info", + "tiny-keccak", +] + +[[package]] +name = "ethereum-types" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02d215cbf040552efcbe99a38372fe80ab9d00268e20012b79fcd0f073edd8ee" +dependencies = [ + "ethbloom", + "fixed-hash", + "impl-codec", + "impl-rlp", + "impl-serde", + "primitive-types", + "scale-info", + "uint", +] + +[[package]] +name = "expander" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f86a749cf851891866c10515ef6c299b5c69661465e9c3bbe7e07a2b77fb0f7" +dependencies = [ + "blake2", + "fs-err", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "fake-simd" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" + +[[package]] +name = "fallible-iterator" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" + +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + +[[package]] +name = "fastrand" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" + +[[package]] +name = "fastrlp" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139834ddba373bbdd213dffe02c8d110508dcf1726c2be27e8d1f7d7e1856418" +dependencies = [ + "arrayvec 0.7.4", + "auto_impl", + "bytes", +] + +[[package]] +name = "ff" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" +dependencies = [ + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "fflonk" +version = "0.1.0" +source = "git+https://github.com/w3f/fflonk#1e854f35e9a65d08b11a86291405cdc95baa0a35" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-poly", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "merlin 3.0.0", +] + +[[package]] +name = "fiat-crypto" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1676f435fc1dadde4d03e43f5d62b259e1ce5f40bd4ffb21db2b42ebe59c1382" + +[[package]] +name = "filetime" +version = "0.2.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "windows-sys 0.52.0", +] + +[[package]] +name = "finality-grandpa" +version = "0.16.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36530797b9bf31cd4ff126dcfee8170f86b00cfdcea3269d73133cc0415945c3" +dependencies = [ + "either", + "futures", + "futures-timer", + "log", + "num-traits", + "parity-scale-codec", + "parking_lot", + "scale-info", +] + +[[package]] +name = "fixed-hash" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" +dependencies = [ + "byteorder", + "rand", + "rustc-hex", + "static_assertions", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "form_urlencoded" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "frame-benchmarking" +version = "28.0.0" +dependencies = [ + "frame-support", + "frame-support-procedural", + "frame-system", + "linregress", + "log", + "parity-scale-codec", + "paste", + "scale-info", + "serde", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-runtime", + "sp-runtime-interface 24.0.0", + "sp-std 14.0.0", + "sp-storage 19.0.0", + "static_assertions", +] + +[[package]] +name = "frame-election-provider-solution-type" +version = "13.0.0" +dependencies = [ + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "frame-election-provider-support" +version = "28.0.0" +dependencies = [ + "frame-election-provider-solution-type", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-npos-elections", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "frame-executive" +version = "28.0.0" +dependencies = [ + "frame-support", + "frame-system", + "frame-try-runtime", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "sp-tracing 16.0.0", +] + +[[package]] +name = "frame-metadata" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cf1549fba25a6fcac22785b61698317d958e96cac72a59102ea45b9ae64692" +dependencies = [ + "cfg-if", + "parity-scale-codec", + "scale-info", + "serde", +] + +[[package]] +name = "frame-support" +version = "28.0.0" +dependencies = [ + "aquamarine", + "array-bytes 6.2.2", + "bitflags 1.3.2", + "docify", + "environmental", + "frame-metadata", + "frame-support-procedural", + "impl-trait-for-tuples", + "k256", + "log", + "macro_magic", + "parity-scale-codec", + "paste", + "scale-info", + "serde", + "serde_json", + "smallvec", + "sp-api", + "sp-arithmetic", + "sp-core", + "sp-crypto-hashing-proc-macro", + "sp-debug-derive 14.0.0", + "sp-genesis-builder", + "sp-inherents", + "sp-io", + "sp-metadata-ir", + "sp-runtime", + "sp-staking", + "sp-state-machine", + "sp-std 14.0.0", + "sp-tracing 16.0.0", + "sp-weights", + "static_assertions", + "tt-call", +] + +[[package]] +name = "frame-support-procedural" +version = "23.0.0" +dependencies = [ + "Inflector", + "cfg-expr", + "derive-syn-parse", + "expander", + "frame-support-procedural-tools", + "itertools", + "macro_magic", + "proc-macro-warning", + "proc-macro2", + "quote", + "sp-crypto-hashing", + "syn 2.0.50", +] + +[[package]] +name = "frame-support-procedural-tools" +version = "10.0.0" +dependencies = [ + "frame-support-procedural-tools-derive", + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "frame-support-procedural-tools-derive" +version = "11.0.0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "frame-system" +version = "28.0.0" +dependencies = [ + "cfg-if", + "docify", + "frame-support", + "log", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "sp-version", + "sp-weights", +] + +[[package]] +name = "frame-system-benchmarking" +version = "28.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "frame-system-rpc-runtime-api" +version = "26.0.0" +dependencies = [ + "parity-scale-codec", + "sp-api", +] + +[[package]] +name = "frame-try-runtime" +version = "0.34.0" +dependencies = [ + "frame-support", + "parity-scale-codec", + "sp-api", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "fs-err" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" +dependencies = [ + "autocfg", +] + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + +[[package]] +name = "futures" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" + +[[package]] +name = "futures-executor" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", + "num_cpus", +] + +[[package]] +name = "futures-io" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" + +[[package]] +name = "futures-macro" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "futures-sink" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" + +[[package]] +name = "futures-task" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" + +[[package]] +name = "futures-timer" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" + +[[package]] +name = "futures-util" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd" +dependencies = [ + "typenum", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", + "zeroize", +] + +[[package]] +name = "getrandom" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom_or_panic" +version = "0.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea1015b5a70616b688dc230cfe50c8af89d972cb132d5a622814d29773b10b9" +dependencies = [ + "rand", + "rand_core 0.6.4", +] + +[[package]] +name = "gimli" +version = "0.27.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" +dependencies = [ + "fallible-iterator 0.2.0", + "indexmap 1.9.3", + "stable_deref_trait", +] + +[[package]] +name = "gimli" +version = "0.28.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +dependencies = [ + "fallible-iterator 0.3.0", + "stable_deref_trait", +] + +[[package]] +name = "group" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +dependencies = [ + "ff", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "hash-db" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e7d7786361d7425ae2fe4f9e407eb0efaa0840f5212d109cc018c40c35c6ab4" + +[[package]] +name = "hash256-std-hasher" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92c171d55b98633f4ed3860808f004099b36c1cc29c42cfc53aa8591b21efcf2" +dependencies = [ + "crunchy", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +dependencies = [ + "ahash 0.7.8", +] + +[[package]] +name = "hashbrown" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash 0.8.9", +] + +[[package]] +name = "hashbrown" +version = "0.14.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hermit-abi" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "379dada1584ad501b383485dd706b8afb7a70fcbc7f4da7d780638a5a6124a60" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hex-literal" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" + +[[package]] +name = "hmac" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +dependencies = [ + "crypto-mac 0.8.0", + "digest 0.9.0", +] + +[[package]] +name = "hmac" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" +dependencies = [ + "crypto-mac 0.11.0", + "digest 0.9.0", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "hmac-drbg" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" +dependencies = [ + "digest 0.9.0", + "generic-array 0.14.7", + "hmac 0.8.1", +] + +[[package]] +name = "humantime" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" + +[[package]] +name = "iana-time-zone" +version = "0.1.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "idna" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +dependencies = [ + "unicode-bidi", + "unicode-normalization", +] + +[[package]] +name = "impl-codec" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba6a270039626615617f3f36d15fc827041df3b78c439da2cadfa47455a77f2f" +dependencies = [ + "parity-scale-codec", +] + +[[package]] +name = "impl-rlp" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f28220f89297a075ddc7245cd538076ee98b01f2a9c23a53a4f1105d5a322808" +dependencies = [ + "rlp", +] + +[[package]] +name = "impl-serde" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc88fc67028ae3db0c853baa36269d398d5f45b6982f95549ff5def78c935cd" +dependencies = [ + "serde", +] + +[[package]] +name = "impl-trait-for-tuples" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "include_dir" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18762faeff7122e89e0857b02f7ce6fcc0d101d5e9ad2ad7846cc01d61b7f19e" +dependencies = [ + "include_dir_macros", +] + +[[package]] +name = "include_dir_macros" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b139284b5cf57ecfa712bcc66950bb635b31aff41c188e8a4cfc758eca374a3f" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233cf39063f058ea2caae4091bf4a3ef70a653afbc026f5c4a4135d114e3c177" +dependencies = [ + "equivalent", + "hashbrown 0.14.3", +] + +[[package]] +name = "integer-sqrt" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "276ec31bcb4a9ee45f58bec6f9ec700ae4cf4f4f8f2fa7e06cb406bd5ffdd770" +dependencies = [ + "num-traits", +] + +[[package]] +name = "io-lifetimes" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" +dependencies = [ + "hermit-abi 0.3.8", + "libc", + "windows-sys 0.48.0", +] + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" + +[[package]] +name = "js-sys" +version = "0.3.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "406cda4b368d531c842222cf9d2600a9a4acce8d29423695379c6868a143a9ee" +dependencies = [ + "wasm-bindgen", +] + +[[package]] +name = "k256" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "956ff9b67e26e1a6a866cb758f12c6f8746208489e3e4a4b5580802f2f0a587b" +dependencies = [ + "cfg-if", + "ecdsa", + "elliptic-curve", + "once_cell", + "sha2 0.10.8", +] + +[[package]] +name = "keccak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" +dependencies = [ + "cpufeatures", +] + +[[package]] +name = "lazy_static" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" + +[[package]] +name = "libc" +version = "0.2.153" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" + +[[package]] +name = "libm" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" + +[[package]] +name = "libsecp256k1" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95b09eff1b35ed3b33b877ced3a691fc7a481919c7e29c53c906226fcf55e2a1" +dependencies = [ + "arrayref", + "base64", + "digest 0.9.0", + "hmac-drbg", + "libsecp256k1-core", + "libsecp256k1-gen-ecmult", + "libsecp256k1-gen-genmult", + "rand", + "serde", + "sha2 0.9.9", + "typenum", +] + +[[package]] +name = "libsecp256k1-core" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" +dependencies = [ + "crunchy", + "digest 0.9.0", + "subtle", +] + +[[package]] +name = "libsecp256k1-gen-ecmult" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3038c808c55c87e8a172643a7d87187fc6c4174468159cb3090659d55bcb4809" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "libsecp256k1-gen-genmult" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db8d6ba2cec9eacc40e6e8ccc98931840301f1006e95647ceb2dd5c3aa06f7c" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "link-cplusplus" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d240c6f7e1ba3a28b0249f774e6a9dd0175054b52dfbb61b16eb8505c3785c9" +dependencies = [ + "cc", +] + +[[package]] +name = "linregress" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4de04dcecc58d366391f9920245b85ffa684558a5ef6e7736e754347c3aea9c2" +dependencies = [ + "nalgebra", +] + +[[package]] +name = "linux-raw-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" + +[[package]] +name = "linux-raw-sys" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" + +[[package]] +name = "lock_api" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" +dependencies = [ + "autocfg", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" + +[[package]] +name = "lru" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6e8aaa3f231bb4bd57b84b2d5dc3ae7f350265df8aa96492e0bc394a1571909" +dependencies = [ + "hashbrown 0.12.3", +] + +[[package]] +name = "mach" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +dependencies = [ + "libc", +] + +[[package]] +name = "macro_magic" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e03844fc635e92f3a0067e25fa4bf3e3dbf3f2927bf3aa01bb7bc8f1c428949d" +dependencies = [ + "macro_magic_core", + "macro_magic_macros", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "macro_magic_core" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "468155613a44cfd825f1fb0ffa532b018253920d404e6fca1e8d43155198a46d" +dependencies = [ + "const-random", + "derive-syn-parse", + "macro_magic_core_macros", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "macro_magic_core_macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ea73aa640dc01d62a590d48c0c3521ed739d53b27f919b25c3551e233481654" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "macro_magic_macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef9d79ae96aaba821963320eb2b6e34d17df1e5a83d8a1985c29cc5be59577b3" +dependencies = [ + "macro_magic_core", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "matchers" +version = "0.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" +dependencies = [ + "regex-automata 0.1.10", +] + +[[package]] +name = "matrixmultiply" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7574c1cf36da4798ab73da5b215bbf444f50718207754cb522201d78d1cd0ff2" +dependencies = [ + "autocfg", + "rawpointer", +] + +[[package]] +name = "memchr" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" + +[[package]] +name = "memfd" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" +dependencies = [ + "rustix 0.38.31", +] + +[[package]] +name = "memoffset" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" +dependencies = [ + "autocfg", +] + +[[package]] +name = "memory-db" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" +dependencies = [ + "hash-db", +] + +[[package]] +name = "merlin" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e261cf0f8b3c42ded9f7d2bb59dea03aa52bc8a1cbc7482f9fc3fd1229d3b42" +dependencies = [ + "byteorder", + "keccak", + "rand_core 0.5.1", + "zeroize", +] + +[[package]] +name = "merlin" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +dependencies = [ + "byteorder", + "keccak", + "rand_core 0.6.4", + "zeroize", +] + +[[package]] +name = "miniz_oxide" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" +dependencies = [ + "adler", +] + +[[package]] +name = "nalgebra" +version = "0.32.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4541eb06dce09c0241ebbaab7102f0a01a0c8994afed2e5d0d66775016e25ac2" +dependencies = [ + "approx", + "matrixmultiply", + "nalgebra-macros", + "num-complex", + "num-rational", + "num-traits", + "simba", + "typenum", +] + +[[package]] +name = "nalgebra-macros" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91761aed67d03ad966ef783ae962ef9bbaca728d2dd7ceb7939ec110fffad998" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + +[[package]] +name = "num-bigint" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-complex" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23c6602fda94a57c990fe0df199a035d83576b496aa29f4e634a8ac6004e68a6" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-format" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" +dependencies = [ + "arrayvec 0.7.4", + "itoa", +] + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_cpus" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" +dependencies = [ + "hermit-abi 0.3.8", + "libc", +] + +[[package]] +name = "object" +version = "0.30.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" +dependencies = [ + "crc32fast", + "hashbrown 0.13.2", + "indexmap 1.9.3", + "memchr", +] + +[[package]] +name = "object" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +dependencies = [ + "memchr", +] + +[[package]] +name = "once_cell" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" + +[[package]] +name = "opaque-debug" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" + +[[package]] +name = "opaque-debug" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" + +[[package]] +name = "pallet-asset-conversion" +version = "10.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-asset-rate" +version = "7.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-asset-tx-payment" +version = "28.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-transaction-payment", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-assets" +version = "29.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-aura" +version = "27.0.0" +dependencies = [ + "frame-support", + "frame-system", + "log", + "pallet-timestamp", + "parity-scale-codec", + "scale-info", + "sp-application-crypto", + "sp-consensus-aura", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-authority-discovery" +version = "28.0.0" +dependencies = [ + "frame-support", + "frame-system", + "pallet-session", + "parity-scale-codec", + "scale-info", + "sp-application-crypto", + "sp-authority-discovery", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-authorship" +version = "28.0.0" +dependencies = [ + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-babe" +version = "28.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-authorship", + "pallet-session", + "pallet-timestamp", + "parity-scale-codec", + "scale-info", + "sp-application-crypto", + "sp-consensus-babe", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-balances" +version = "28.0.0" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-bridge-grandpa" +version = "0.7.0" +dependencies = [ + "bp-header-chain", + "bp-runtime", + "bp-test-utils", + "finality-grandpa", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-consensus-grandpa", + "sp-runtime", + "sp-std 14.0.0", + "sp-trie", +] + +[[package]] +name = "pallet-bridge-messages" +version = "0.7.0" +dependencies = [ + "bp-messages", + "bp-runtime", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "num-traits", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-bridge-parachains" +version = "0.7.0" +dependencies = [ + "bp-header-chain", + "bp-parachains", + "bp-polkadot-core", + "bp-runtime", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-bridge-grandpa", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0", + "sp-trie", +] + +[[package]] +name = "pallet-bridge-relayers" +version = "0.7.0" +dependencies = [ + "bp-messages", + "bp-relayers", + "bp-runtime", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-bridge-messages", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-broker" +version = "0.6.0" +dependencies = [ + "bitvec", + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-collator-selection" +version = "9.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-authorship", + "pallet-session", + "parity-scale-codec", + "rand", + "scale-info", + "sp-runtime", + "sp-staking", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-election-provider-multi-phase" +version = "27.0.0" +dependencies = [ + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", + "log", + "pallet-election-provider-support-benchmarking", + "parity-scale-codec", + "rand", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-npos-elections", + "sp-runtime", + "sp-std 14.0.0", + "strum", +] + +[[package]] +name = "pallet-election-provider-support-benchmarking" +version = "27.0.0" +dependencies = [ + "frame-benchmarking", + "frame-election-provider-support", + "frame-system", + "parity-scale-codec", + "sp-npos-elections", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-fast-unstake" +version = "27.0.0" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", + "sp-staking", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-identity" +version = "28.0.0" +dependencies = [ + "enumflags2", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-message-queue" +version = "31.0.0" +dependencies = [ + "environmental", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "sp-weights", +] + +[[package]] +name = "pallet-multisig" +version = "28.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-session" +version = "28.0.0" +dependencies = [ + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log", + "pallet-timestamp", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-state-machine", + "sp-std 14.0.0", + "sp-trie", +] + +[[package]] +name = "pallet-staking" +version = "28.0.0" +dependencies = [ + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", + "log", + "pallet-authorship", + "pallet-session", + "parity-scale-codec", + "rand_chacha 0.2.2", + "scale-info", + "serde", + "sp-application-crypto", + "sp-io", + "sp-runtime", + "sp-staking", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-staking-reward-fn" +version = "19.0.0" +dependencies = [ + "log", + "sp-arithmetic", +] + +[[package]] +name = "pallet-timestamp" +version = "27.0.0" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "sp-storage 19.0.0", + "sp-timestamp", +] + +[[package]] +name = "pallet-transaction-payment" +version = "28.0.0" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-transaction-payment-rpc-runtime-api" +version = "28.0.0" +dependencies = [ + "pallet-transaction-payment", + "parity-scale-codec", + "sp-api", + "sp-runtime", + "sp-weights", +] + +[[package]] +name = "pallet-treasury" +version = "27.0.0" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "pallet-balances", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-utility" +version = "28.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-vesting" +version = "28.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "pallet-xcm" +version = "7.0.0" +dependencies = [ + "bounded-collections", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-balances", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "pallet-xcm-benchmarks" +version = "7.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "pallet-xcm-bridge-hub-router" +version = "0.5.0" +dependencies = [ + "bp-xcm-bridge-hub-router", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", +] + +[[package]] +name = "parachains-common" +version = "7.0.0" +dependencies = [ + "cumulus-primitives-core", + "cumulus-primitives-utility", + "frame-support", + "frame-system", + "log", + "pallet-asset-tx-payment", + "pallet-assets", + "pallet-authorship", + "pallet-balances", + "pallet-collator-selection", + "pallet-message-queue", + "pallet-xcm", + "parity-scale-codec", + "polkadot-primitives", + "scale-info", + "sp-consensus-aura", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-parachain-info", + "staging-xcm", + "staging-xcm-executor", + "substrate-wasm-builder", +] + +[[package]] +name = "parachains-runtimes-test-utils" +version = "7.0.0" +dependencies = [ + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", + "cumulus-primitives-core", + "cumulus-primitives-parachain-inherent", + "cumulus-test-relay-sproof-builder", + "frame-support", + "frame-system", + "pallet-balances", + "pallet-collator-selection", + "pallet-session", + "pallet-timestamp", + "pallet-xcm", + "parity-scale-codec", + "polkadot-parachain-primitives", + "sp-consensus-aura", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "sp-tracing 16.0.0", + "staging-parachain-info", + "staging-xcm", + "staging-xcm-executor", + "substrate-wasm-builder", +] + +[[package]] +name = "parity-bytes" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b56e3a2420138bdb970f84dfb9c774aea80fa0e7371549eedec0d80c209c67" + +[[package]] +name = "parity-scale-codec" +version = "3.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "881331e34fa842a2fb61cc2db9643a8fedc615e47cfcc52597d1af0db9a7e8fe" +dependencies = [ + "arrayvec 0.7.4", + "bitvec", + "byte-slice-cast", + "bytes", + "impl-trait-for-tuples", + "parity-scale-codec-derive", + "serde", +] + +[[package]] +name = "parity-scale-codec-derive" +version = "3.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be30eaf4b0a9fba5336683b38de57bb86d179a35862ba6bfcf57625d006bde5b" +dependencies = [ + "proc-macro-crate 2.0.0", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "parity-util-mem" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8" +dependencies = [ + "cfg-if", + "ethereum-types", + "hashbrown 0.12.3", + "impl-trait-for-tuples", + "lru", + "parity-util-mem-derive", + "parking_lot", + "primitive-types", + "smallvec", + "winapi", +] + +[[package]] +name = "parity-util-mem-derive" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" +dependencies = [ + "proc-macro2", + "syn 1.0.109", + "synstructure", +] + +[[package]] +name = "parity-wasm" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1ad0aff30c1da14b1254fcb2af73e1fa9a28670e584a626f53a369d0e157304" + +[[package]] +name = "parking_lot" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-targets 0.48.5", +] + +[[package]] +name = "paste" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" + +[[package]] +name = "pbkdf2" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d95f5254224e617595d2cc3cc73ff0a5eaf2637519e25f03388154e9378b6ffa" +dependencies = [ + "crypto-mac 0.11.0", +] + +[[package]] +name = "percent-encoding" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" + +[[package]] +name = "pest" +version = "2.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219c0dcc30b6a27553f9cc242972b67f75b60eb0db71f0b5462f38b058c41546" +dependencies = [ + "memchr", + "thiserror", + "ucd-trie", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "pkg-config" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" + +[[package]] +name = "platforms" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626dec3cac7cc0e1577a2ec3fc496277ec2baa084bebad95bb6fdbfae235f84c" + +[[package]] +name = "polkadot-core-primitives" +version = "7.0.0" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "polkadot-parachain-primitives" +version = "6.0.0" +dependencies = [ + "bounded-collections", + "derive_more", + "parity-scale-codec", + "polkadot-core-primitives", + "scale-info", + "serde", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", + "sp-weights", +] + +[[package]] +name = "polkadot-primitives" +version = "7.0.0" +dependencies = [ + "bitvec", + "hex-literal", + "log", + "parity-scale-codec", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "scale-info", + "serde", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", + "sp-authority-discovery", + "sp-consensus-slots", + "sp-core", + "sp-inherents", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-staking", + "sp-std 14.0.0", +] + +[[package]] +name = "polkadot-runtime-common" +version = "7.0.0" +dependencies = [ + "bitvec", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "libsecp256k1", + "log", + "pallet-asset-rate", + "pallet-authorship", + "pallet-babe", + "pallet-balances", + "pallet-broker", + "pallet-election-provider-multi-phase", + "pallet-fast-unstake", + "pallet-identity", + "pallet-session", + "pallet-staking", + "pallet-staking-reward-fn", + "pallet-timestamp", + "pallet-transaction-payment", + "pallet-treasury", + "pallet-vesting", + "pallet-xcm-benchmarks", + "parity-scale-codec", + "polkadot-primitives", + "polkadot-runtime-parachains", + "rustc-hex", + "scale-info", + "serde", + "serde_derive", + "slot-range-helper", + "sp-api", + "sp-core", + "sp-inherents", + "sp-io", + "sp-npos-elections", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "static_assertions", +] + +[[package]] +name = "polkadot-runtime-metrics" +version = "7.0.0" +dependencies = [ + "bs58", + "frame-benchmarking", + "parity-scale-codec", + "polkadot-primitives", + "sp-std 14.0.0", + "sp-tracing 16.0.0", +] + +[[package]] +name = "polkadot-runtime-parachains" +version = "7.0.0" +dependencies = [ + "bitflags 1.3.2", + "bitvec", + "derive_more", + "frame-benchmarking", + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances", + "pallet-broker", + "pallet-message-queue", + "pallet-session", + "pallet-staking", + "pallet-timestamp", + "pallet-vesting", + "parity-scale-codec", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-metrics", + "rand", + "rand_chacha 0.3.1", + "rustc-hex", + "scale-info", + "serde", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", + "sp-core", + "sp-inherents", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-executor", + "static_assertions", +] + +[[package]] +name = "polkavm-common" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92c99f7eee94e7be43ba37eef65ad0ee8cbaf89b7c00001c3f6d2be985cb1817" + +[[package]] +name = "polkavm-derive" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79fa916f7962348bd1bb1a65a83401675e6fc86c51a0fdbcf92a3108e58e6125" +dependencies = [ + "polkavm-derive-impl-macro", +] + +[[package]] +name = "polkavm-derive-impl" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c10b2654a8a10a83c260bfb93e97b262cf0017494ab94a65d389e0eda6de6c9c" +dependencies = [ + "polkavm-common", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "polkavm-derive-impl-macro" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15e85319a0d5129dc9f021c62607e0804f5fb777a05cdda44d750ac0732def66" +dependencies = [ + "polkavm-derive-impl", + "syn 2.0.50", +] + +[[package]] +name = "polkavm-linker" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdec1451cb18261d5d01de82acc15305e417fb59588cdcb3127d3dcc9672b925" +dependencies = [ + "gimli 0.28.1", + "hashbrown 0.14.3", + "log", + "object 0.32.2", + "polkavm-common", + "regalloc2", + "rustc-demangle", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "primitive-types" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b34d9fd68ae0b74a41b21c03c2f62847aa0ffea044eee893b4c140b37e244e2" +dependencies = [ + "fixed-hash", + "impl-codec", + "impl-rlp", + "impl-serde", + "scale-info", + "uint", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" +dependencies = [ + "toml_edit 0.20.7", +] + +[[package]] +name = "proc-macro-crate" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" +dependencies = [ + "toml_edit 0.21.1", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro-warning" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "834da187cfe638ae8abb0203f0b33e5ccdb02a28e7199f2f47b3e2754f50edca" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "proc-macro2" +version = "1.0.78" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "proptest" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31b476131c3c86cb68032fdc5cb6d5a1045e3e42d96b69fa599fd77701e1f5bf" +dependencies = [ + "bit-set", + "bit-vec", + "bitflags 2.4.2", + "lazy_static", + "num-traits", + "rand", + "rand_chacha 0.3.1", + "rand_xorshift", + "regex-syntax 0.8.2", + "rusty-fork", + "tempfile", + "unarray", +] + +[[package]] +name = "psm" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874" +dependencies = [ + "cc", +] + +[[package]] +name = "quick-error" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" + +[[package]] +name = "quote" +version = "1.0.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] + +[[package]] +name = "rand_xorshift" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" +dependencies = [ + "rand_core 0.6.4", +] + +[[package]] +name = "rawpointer" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" + +[[package]] +name = "rayon" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7237101a77a10773db45d62004a272517633fbcc3df19d96455ede1122e051" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "redox_syscall" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "ref-cast" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4846d4c50d1721b1a3bef8af76924eef20d5e723647333798c1b519b3a9473f" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fddb4f8d99b0a2ebafc65a87a69a7b9875e4b1ae1f00db265d300ef7f28bccc" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "regalloc2" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6" +dependencies = [ + "hashbrown 0.13.2", + "log", + "rustc-hash", + "slice-group-by", + "smallvec", +] + +[[package]] +name = "regex" +version = "1.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata 0.4.5", + "regex-syntax 0.8.2", +] + +[[package]] +name = "regex-automata" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" +dependencies = [ + "regex-syntax 0.6.29", +] + +[[package]] +name = "regex-automata" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax 0.8.2", +] + +[[package]] +name = "regex-syntax" +version = "0.6.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" + +[[package]] +name = "regex-syntax" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" + +[[package]] +name = "rfc6979" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" +dependencies = [ + "hmac 0.12.1", + "subtle", +] + +[[package]] +name = "ring" +version = "0.1.0" +source = "git+https://github.com/w3f/ring-proof#b273d33f9981e2bb3375ab45faeb537f7ee35224" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-poly", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "blake2", + "common", + "fflonk", + "merlin 3.0.0", +] + +[[package]] +name = "rlp" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb919243f34364b6bd2fc10ef797edbfa75f33c252e7998527479c6d6b47e1ec" +dependencies = [ + "bytes", + "rustc-hex", +] + +[[package]] +name = "ruint" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "608a5726529f2f0ef81b8fde9873c4bb829d6b5b5ca6be4d97345ddf0749c825" +dependencies = [ + "alloy-rlp", + "ark-ff 0.3.0", + "ark-ff 0.4.2", + "bytes", + "fastrlp", + "num-bigint", + "num-traits", + "parity-scale-codec", + "primitive-types", + "proptest", + "rand", + "rlp", + "ruint-macro", + "serde", + "valuable", + "zeroize", +] + +[[package]] +name = "ruint-macro" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e666a5496a0b2186dbcd0ff6106e29e093c15591bde62c20d3842007c6978a09" + +[[package]] +name = "rustc-demangle" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hex" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" + +[[package]] +name = "rustc_version" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee" +dependencies = [ + "semver 0.11.0", +] + +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver 1.0.22", +] + +[[package]] +name = "rustix" +version = "0.36.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "305efbd14fde4139eb501df5f136994bb520b033fa9fbdce287507dc23b8c7ed" +dependencies = [ + "bitflags 1.3.2", + "errno", + "io-lifetimes", + "libc", + "linux-raw-sys 0.1.4", + "windows-sys 0.45.0", +] + +[[package]] +name = "rustix" +version = "0.38.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" +dependencies = [ + "bitflags 2.4.2", + "errno", + "libc", + "linux-raw-sys 0.4.13", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustversion" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" + +[[package]] +name = "rusty-fork" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb3dcc6e454c328bb824492db107ab7c0ae8fcffe4ad210136ef014458c1bc4f" +dependencies = [ + "fnv", + "quick-error", + "tempfile", + "wait-timeout", +] + +[[package]] +name = "ryu" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" + +[[package]] +name = "safe_arch" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f398075ce1e6a179b46f51bd88d0598b92b00d3551f1a2d4ac49e771b56ac354" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scale-info" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f7d66a1128282b7ef025a8ead62a4a9fcf017382ec53b8ffbf4d7bf77bd3c60" +dependencies = [ + "bitvec", + "cfg-if", + "derive_more", + "parity-scale-codec", + "scale-info-derive", + "serde", +] + +[[package]] +name = "scale-info-derive" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abf2c68b89cafb3b8d918dd07b42be0da66ff202cf1155c5739a4e0c1ea0dc19" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "schnellru" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" +dependencies = [ + "ahash 0.8.9", + "cfg-if", + "hashbrown 0.13.2", +] + +[[package]] +name = "schnorrkel" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "021b403afe70d81eea68f6ea12f6b3c9588e5d536a94c3bf80f15e7faa267862" +dependencies = [ + "arrayref", + "arrayvec 0.5.2", + "curve25519-dalek 2.1.3", + "merlin 2.0.1", + "rand_core 0.5.1", + "sha2 0.8.2", + "subtle", + "zeroize", +] + +[[package]] +name = "schnorrkel" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de18f6d8ba0aad7045f5feae07ec29899c1112584a38509a84ad7b04451eaa0" +dependencies = [ + "aead", + "arrayref", + "arrayvec 0.7.4", + "curve25519-dalek 4.1.2", + "getrandom_or_panic", + "merlin 3.0.0", + "rand_core 0.6.4", + "serde_bytes", + "sha2 0.10.8", + "subtle", + "zeroize", +] + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "scratch" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3cf7c11c38cb994f3d40e8a8cde3bbd1f72a435e4c49e85d6553d8312306152" + +[[package]] +name = "sec1" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" +dependencies = [ + "base16ct", + "der", + "generic-array 0.14.7", + "pkcs8", + "subtle", + "zeroize", +] + +[[package]] +name = "secp256k1" +version = "0.28.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d24b59d129cdadea20aea4fb2352fa053712e5d713eee47d700cd4b2bc002f10" +dependencies = [ + "secp256k1-sys", +] + +[[package]] +name = "secp256k1-sys" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d1746aae42c19d583c3c1a8c646bfad910498e2051c551a7f2e3c0c9fbb7eb" +dependencies = [ + "cc", +] + +[[package]] +name = "secrecy" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bd1c54ea06cfd2f6b63219704de0b9b4f72dcc2b8fdef820be6cd799780e91e" +dependencies = [ + "zeroize", +] + +[[package]] +name = "semver" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537" +dependencies = [ + "semver-parser 0.7.0", +] + +[[package]] +name = "semver" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" +dependencies = [ + "semver-parser 0.10.2", +] + +[[package]] +name = "semver" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" +dependencies = [ + "serde", +] + +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" + +[[package]] +name = "semver-parser" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" +dependencies = [ + "pest", +] + +[[package]] +name = "serde" +version = "1.0.197" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde-big-array" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd31f59f6fe2b0c055371bb2f16d7f0aa7d8881676c04a55b1596d1a17cd10a4" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_bytes" +version = "0.11.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_derive" +version = "1.0.197" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "serde_json" +version = "1.0.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" +dependencies = [ + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_spanned" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" +dependencies = [ + "serde", +] + +[[package]] +name = "sha2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" +dependencies = [ + "block-buffer 0.7.3", + "digest 0.8.1", + "fake-simd", + "opaque-debug 0.2.3", +] + +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if", + "cpufeatures", + "digest 0.9.0", + "opaque-debug 0.3.0", +] + +[[package]] +name = "sha2" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + +[[package]] +name = "sha3" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +dependencies = [ + "digest 0.10.7", + "keccak", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "digest 0.10.7", + "rand_core 0.6.4", +] + +[[package]] +name = "simba" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "061507c94fc6ab4ba1c9a0305018408e312e17c041eb63bef8aa726fa33aceae" +dependencies = [ + "approx", + "num-complex", + "num-traits", + "paste", + "wide", +] + +[[package]] +name = "simple-mermaid" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "620a1d43d70e142b1d46a929af51d44f383db9c7a2ec122de2cd992ccfcf3c18" + +[[package]] +name = "slab" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" +dependencies = [ + "autocfg", +] + +[[package]] +name = "slice-group-by" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" + +[[package]] +name = "slot-range-helper" +version = "7.0.0" +dependencies = [ + "enumn", + "parity-scale-codec", + "paste", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "smallvec" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" + +[[package]] +name = "snowbridge-amcl" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460a9ed63cdf03c1b9847e8a12a5f5ba19c4efd5869e4a737e05be25d7c427e5" +dependencies = [ + "parity-scale-codec", + "scale-info", +] + +[[package]] +name = "snowbridge-beacon-primitives" +version = "0.9.0" +dependencies = [ + "byte-slice-cast", + "frame-support", + "frame-system", + "hex", + "hex-literal", + "parity-scale-codec", + "rlp", + "scale-info", + "serde", + "snowbridge-ethereum", + "snowbridge-milagro-bls", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "ssz_rs", + "ssz_rs_derive", + "static_assertions", +] + +[[package]] +name = "snowbridge-core" +version = "0.9.0" +dependencies = [ + "ethabi-decode", + "frame-support", + "frame-system", + "hex", + "hex-literal", + "parity-scale-codec", + "polkadot-parachain-primitives", + "scale-info", + "serde", + "snowbridge-beacon-primitives", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", +] + +[[package]] +name = "snowbridge-ethereum" +version = "0.9.0" +dependencies = [ + "ethabi-decode", + "ethbloom", + "ethereum-types", + "hex-literal", + "parity-bytes", + "parity-scale-codec", + "rand", + "rlp", + "rustc-hex", + "scale-info", + "serde", + "serde-big-array", + "serde_json", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "wasm-bindgen-test", +] + +[[package]] +name = "snowbridge-milagro-bls" +version = "1.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "026aa8638f690a53e3f7676024b9e913b1cab0111d1b7b92669d40a188f9d7e6" +dependencies = [ + "hex", + "lazy_static", + "parity-scale-codec", + "rand", + "scale-info", + "snowbridge-amcl", + "zeroize", +] + +[[package]] +name = "snowbridge-outbound-queue-merkle-tree" +version = "0.9.0" +dependencies = [ + "array-bytes 4.2.0", + "env_logger", + "hex", + "hex-literal", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-crypto-hashing", + "sp-runtime", +] + +[[package]] +name = "snowbridge-outbound-queue-runtime-api" +version = "0.9.0" +dependencies = [ + "frame-support", + "parity-scale-codec", + "snowbridge-core", + "snowbridge-outbound-queue-merkle-tree", + "sp-api", + "sp-core", + "sp-std 14.0.0", + "staging-xcm", +] + +[[package]] +name = "snowbridge-pallet-ethereum-client" +version = "0.9.0" +dependencies = [ + "bp-runtime", + "byte-slice-cast", + "frame-benchmarking", + "frame-support", + "frame-system", + "hex-literal", + "log", + "pallet-timestamp", + "parity-scale-codec", + "rand", + "rlp", + "scale-info", + "serde", + "serde_json", + "snowbridge-beacon-primitives", + "snowbridge-core", + "snowbridge-ethereum", + "snowbridge-pallet-ethereum-client-fixtures", + "sp-core", + "sp-io", + "sp-keyring", + "sp-runtime", + "sp-std 14.0.0", + "ssz_rs", + "ssz_rs_derive", + "static_assertions", +] + +[[package]] +name = "snowbridge-pallet-ethereum-client-fixtures" +version = "0.9.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "hex-literal", + "snowbridge-beacon-primitives", + "snowbridge-core", + "sp-core", + "sp-std 14.0.0", +] + +[[package]] +name = "snowbridge-pallet-inbound-queue" +version = "0.9.0" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "alloy-sol-types", + "frame-benchmarking", + "frame-support", + "frame-system", + "hex-literal", + "log", + "num-traits", + "pallet-balances", + "parity-scale-codec", + "scale-info", + "serde", + "snowbridge-beacon-primitives", + "snowbridge-core", + "snowbridge-ethereum", + "snowbridge-pallet-ethereum-client", + "snowbridge-pallet-inbound-queue-fixtures", + "snowbridge-router-primitives", + "sp-core", + "sp-io", + "sp-keyring", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "snowbridge-pallet-inbound-queue-fixtures" +version = "0.9.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "hex-literal", + "snowbridge-beacon-primitives", + "snowbridge-core", + "sp-core", + "sp-std 14.0.0", +] + +[[package]] +name = "snowbridge-pallet-outbound-queue" +version = "0.9.0" +dependencies = [ + "bridge-hub-common", + "ethabi-decode", + "frame-benchmarking", + "frame-support", + "frame-system", + "hex-literal", + "pallet-message-queue", + "parity-scale-codec", + "scale-info", + "serde", + "snowbridge-core", + "snowbridge-outbound-queue-merkle-tree", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-keyring", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", +] + +[[package]] +name = "snowbridge-pallet-system" +version = "0.9.0" +dependencies = [ + "ethabi-decode", + "frame-benchmarking", + "frame-support", + "frame-system", + "hex", + "hex-literal", + "log", + "pallet-balances", + "pallet-message-queue", + "parity-scale-codec", + "polkadot-primitives", + "scale-info", + "snowbridge-core", + "snowbridge-pallet-outbound-queue", + "sp-core", + "sp-io", + "sp-keyring", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "snowbridge-router-primitives" +version = "0.9.0" +dependencies = [ + "ethabi-decode", + "frame-support", + "frame-system", + "hex-literal", + "log", + "parity-scale-codec", + "rustc-hex", + "scale-info", + "serde", + "snowbridge-core", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "snowbridge-runtime-common" +version = "0.9.0" +dependencies = [ + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "snowbridge-core", + "sp-arithmetic", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "snowbridge-runtime-test-common" +version = "0.9.0" +dependencies = [ + "assets-common", + "bridge-hub-test-utils", + "bridge-runtime-common", + "cumulus-pallet-aura-ext", + "cumulus-pallet-parachain-system", + "cumulus-pallet-session-benchmarking", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", + "cumulus-primitives-core", + "cumulus-primitives-utility", + "frame-benchmarking", + "frame-executive", + "frame-support", + "frame-system", + "frame-system-benchmarking", + "frame-system-rpc-runtime-api", + "frame-try-runtime", + "hex-literal", + "log", + "pallet-aura", + "pallet-authorship", + "pallet-balances", + "pallet-collator-selection", + "pallet-message-queue", + "pallet-multisig", + "pallet-session", + "pallet-timestamp", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", + "pallet-utility", + "pallet-xcm", + "pallet-xcm-benchmarks", + "parachains-common", + "parachains-runtimes-test-utils", + "parity-scale-codec", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-runtime-common", + "scale-info", + "serde", + "smallvec", + "snowbridge-beacon-primitives", + "snowbridge-core", + "snowbridge-outbound-queue-runtime-api", + "snowbridge-pallet-ethereum-client", + "snowbridge-pallet-ethereum-client-fixtures", + "snowbridge-pallet-inbound-queue", + "snowbridge-pallet-outbound-queue", + "snowbridge-pallet-system", + "snowbridge-router-primitives", + "snowbridge-system-runtime-api", + "sp-api", + "sp-block-builder", + "sp-consensus-aura", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", + "sp-keyring", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-std 14.0.0", + "sp-storage 19.0.0", + "sp-transaction-pool", + "sp-version", + "staging-parachain-info", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "static_assertions", +] + +[[package]] +name = "snowbridge-system-runtime-api" +version = "0.9.0" +dependencies = [ + "parity-scale-codec", + "snowbridge-core", + "sp-api", + "sp-core", + "sp-std 14.0.0", + "staging-xcm", +] + +[[package]] +name = "sp-api" +version = "26.0.0" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "scale-info", + "sp-api-proc-macro", + "sp-core", + "sp-externalities 0.25.0", + "sp-metadata-ir", + "sp-runtime", + "sp-runtime-interface 24.0.0", + "sp-state-machine", + "sp-std 14.0.0", + "sp-trie", + "sp-version", + "thiserror", +] + +[[package]] +name = "sp-api-proc-macro" +version = "15.0.0" +dependencies = [ + "Inflector", + "blake2", + "expander", + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "sp-application-crypto" +version = "30.0.0" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-arithmetic" +version = "23.0.0" +dependencies = [ + "integer-sqrt", + "num-traits", + "parity-scale-codec", + "scale-info", + "serde", + "sp-std 14.0.0", + "static_assertions", +] + +[[package]] +name = "sp-ark-bls12-381" +version = "0.4.2" +source = "git+https://github.com/paritytech/arkworks-substrate#caa2eed74beb885dd07c7db5f916f2281dad818f" +dependencies = [ + "ark-bls12-381-ext", + "sp-crypto-ec-utils", +] + +[[package]] +name = "sp-ark-ed-on-bls12-381-bandersnatch" +version = "0.4.2" +source = "git+https://github.com/paritytech/arkworks-substrate#caa2eed74beb885dd07c7db5f916f2281dad818f" +dependencies = [ + "ark-ed-on-bls12-381-bandersnatch-ext", + "sp-crypto-ec-utils", +] + +[[package]] +name = "sp-authority-discovery" +version = "26.0.0" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-application-crypto", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-block-builder" +version = "26.0.0" +dependencies = [ + "sp-api", + "sp-inherents", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-consensus-aura" +version = "0.32.0" +dependencies = [ + "async-trait", + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-application-crypto", + "sp-consensus-slots", + "sp-inherents", + "sp-runtime", + "sp-std 14.0.0", + "sp-timestamp", +] + +[[package]] +name = "sp-consensus-babe" +version = "0.32.0" +dependencies = [ + "async-trait", + "parity-scale-codec", + "scale-info", + "serde", + "sp-api", + "sp-application-crypto", + "sp-consensus-slots", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-std 14.0.0", + "sp-timestamp", +] + +[[package]] +name = "sp-consensus-grandpa" +version = "13.0.0" +dependencies = [ + "finality-grandpa", + "log", + "parity-scale-codec", + "scale-info", + "serde", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-keystore", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-consensus-slots" +version = "0.32.0" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-std 14.0.0", + "sp-timestamp", +] + +[[package]] +name = "sp-core" +version = "28.0.0" +dependencies = [ + "array-bytes 6.2.2", + "bandersnatch_vrfs", + "bip39", + "bitflags 1.3.2", + "blake2", + "bounded-collections", + "bs58", + "dyn-clonable", + "ed25519-zebra", + "futures", + "hash-db", + "hash256-std-hasher", + "impl-serde", + "itertools", + "libsecp256k1", + "log", + "merlin 3.0.0", + "parity-scale-codec", + "parking_lot", + "paste", + "primitive-types", + "rand", + "scale-info", + "schnorrkel 0.11.4", + "secp256k1", + "secrecy", + "serde", + "sp-crypto-hashing", + "sp-debug-derive 14.0.0", + "sp-externalities 0.25.0", + "sp-runtime-interface 24.0.0", + "sp-std 14.0.0", + "sp-storage 19.0.0", + "ss58-registry", + "substrate-bip39", + "thiserror", + "tracing", + "w3f-bls", + "zeroize", +] + +[[package]] +name = "sp-crypto-ec-utils" +version = "0.10.0" +source = "git+https://github.com/paritytech/polkadot-sdk#de6d02591b57d03f70ed8db0c674f045ad2ea029" +dependencies = [ + "ark-bls12-377", + "ark-bls12-377-ext", + "ark-bls12-381", + "ark-bls12-381-ext", + "ark-bw6-761", + "ark-bw6-761-ext", + "ark-ec", + "ark-ed-on-bls12-377", + "ark-ed-on-bls12-377-ext", + "ark-ed-on-bls12-381-bandersnatch", + "ark-ed-on-bls12-381-bandersnatch-ext", + "ark-scale", + "sp-runtime-interface 24.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", +] + +[[package]] +name = "sp-crypto-hashing" +version = "0.0.0" +dependencies = [ + "blake2b_simd", + "byteorder", + "digest 0.10.7", + "sha2 0.10.8", + "sha3", + "twox-hash", +] + +[[package]] +name = "sp-crypto-hashing-proc-macro" +version = "0.0.0" +dependencies = [ + "quote", + "sp-crypto-hashing", + "syn 2.0.50", +] + +[[package]] +name = "sp-debug-derive" +version = "14.0.0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "sp-debug-derive" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk#de6d02591b57d03f70ed8db0c674f045ad2ea029" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "sp-externalities" +version = "0.25.0" +dependencies = [ + "environmental", + "parity-scale-codec", + "sp-std 14.0.0", + "sp-storage 19.0.0", +] + +[[package]] +name = "sp-externalities" +version = "0.25.0" +source = "git+https://github.com/paritytech/polkadot-sdk#de6d02591b57d03f70ed8db0c674f045ad2ea029" +dependencies = [ + "environmental", + "parity-scale-codec", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "sp-storage 19.0.0 (git+https://github.com/paritytech/polkadot-sdk)", +] + +[[package]] +name = "sp-genesis-builder" +version = "0.7.0" +dependencies = [ + "serde_json", + "sp-api", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-inherents" +version = "26.0.0" +dependencies = [ + "async-trait", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0", + "thiserror", +] + +[[package]] +name = "sp-io" +version = "30.0.0" +dependencies = [ + "bytes", + "ed25519-dalek", + "libsecp256k1", + "log", + "parity-scale-codec", + "rustversion", + "secp256k1", + "sp-core", + "sp-crypto-hashing", + "sp-externalities 0.25.0", + "sp-keystore", + "sp-runtime-interface 24.0.0", + "sp-state-machine", + "sp-std 14.0.0", + "sp-tracing 16.0.0", + "sp-trie", + "tracing", + "tracing-core", +] + +[[package]] +name = "sp-keyring" +version = "31.0.0" +dependencies = [ + "sp-core", + "sp-runtime", + "strum", +] + +[[package]] +name = "sp-keystore" +version = "0.34.0" +dependencies = [ + "parity-scale-codec", + "parking_lot", + "sp-core", + "sp-externalities 0.25.0", +] + +[[package]] +name = "sp-maybe-compressed-blob" +version = "11.0.0" +dependencies = [ + "thiserror", + "zstd", +] + +[[package]] +name = "sp-metadata-ir" +version = "0.6.0" +dependencies = [ + "frame-metadata", + "parity-scale-codec", + "scale-info", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-npos-elections" +version = "26.0.0" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-arithmetic", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-offchain" +version = "26.0.0" +dependencies = [ + "sp-api", + "sp-core", + "sp-runtime", +] + +[[package]] +name = "sp-panic-handler" +version = "13.0.0" +dependencies = [ + "backtrace", + "lazy_static", + "regex", +] + +[[package]] +name = "sp-runtime" +version = "31.0.1" +dependencies = [ + "docify", + "either", + "hash256-std-hasher", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "paste", + "rand", + "scale-info", + "serde", + "simple-mermaid", + "sp-application-crypto", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-std 14.0.0", + "sp-weights", +] + +[[package]] +name = "sp-runtime-interface" +version = "24.0.0" +dependencies = [ + "bytes", + "impl-trait-for-tuples", + "parity-scale-codec", + "polkavm-derive", + "primitive-types", + "sp-externalities 0.25.0", + "sp-runtime-interface-proc-macro 17.0.0", + "sp-std 14.0.0", + "sp-storage 19.0.0", + "sp-tracing 16.0.0", + "sp-wasm-interface 20.0.0", + "static_assertions", +] + +[[package]] +name = "sp-runtime-interface" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk#de6d02591b57d03f70ed8db0c674f045ad2ea029" +dependencies = [ + "bytes", + "impl-trait-for-tuples", + "parity-scale-codec", + "polkavm-derive", + "primitive-types", + "sp-externalities 0.25.0 (git+https://github.com/paritytech/polkadot-sdk)", + "sp-runtime-interface-proc-macro 17.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "sp-storage 19.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "sp-tracing 16.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "sp-wasm-interface 20.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "static_assertions", +] + +[[package]] +name = "sp-runtime-interface-proc-macro" +version = "17.0.0" +dependencies = [ + "Inflector", + "expander", + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "sp-runtime-interface-proc-macro" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk#de6d02591b57d03f70ed8db0c674f045ad2ea029" +dependencies = [ + "Inflector", + "expander", + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "sp-session" +version = "27.0.0" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-core", + "sp-keystore", + "sp-runtime", + "sp-staking", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-staking" +version = "26.0.0" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-state-machine" +version = "0.35.0" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "parking_lot", + "rand", + "smallvec", + "sp-core", + "sp-externalities 0.25.0", + "sp-panic-handler", + "sp-std 14.0.0", + "sp-trie", + "thiserror", + "tracing", + "trie-db", +] + +[[package]] +name = "sp-std" +version = "14.0.0" + +[[package]] +name = "sp-std" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk#de6d02591b57d03f70ed8db0c674f045ad2ea029" + +[[package]] +name = "sp-storage" +version = "19.0.0" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "ref-cast", + "serde", + "sp-debug-derive 14.0.0", + "sp-std 14.0.0", +] + +[[package]] +name = "sp-storage" +version = "19.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk#de6d02591b57d03f70ed8db0c674f045ad2ea029" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "ref-cast", + "serde", + "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", +] + +[[package]] +name = "sp-timestamp" +version = "26.0.0" +dependencies = [ + "async-trait", + "parity-scale-codec", + "sp-inherents", + "sp-runtime", + "sp-std 14.0.0", + "thiserror", +] + +[[package]] +name = "sp-tracing" +version = "16.0.0" +dependencies = [ + "parity-scale-codec", + "sp-std 14.0.0", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "sp-tracing" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk#de6d02591b57d03f70ed8db0c674f045ad2ea029" +dependencies = [ + "parity-scale-codec", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "sp-transaction-pool" +version = "26.0.0" +dependencies = [ + "sp-api", + "sp-runtime", +] + +[[package]] +name = "sp-trie" +version = "29.0.0" +dependencies = [ + "ahash 0.8.9", + "hash-db", + "lazy_static", + "memory-db", + "nohash-hasher", + "parity-scale-codec", + "parking_lot", + "rand", + "scale-info", + "schnellru", + "sp-core", + "sp-externalities 0.25.0", + "sp-std 14.0.0", + "thiserror", + "tracing", + "trie-db", + "trie-root", +] + +[[package]] +name = "sp-version" +version = "29.0.0" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "parity-wasm", + "scale-info", + "serde", + "sp-crypto-hashing-proc-macro", + "sp-runtime", + "sp-std 14.0.0", + "sp-version-proc-macro", + "thiserror", +] + +[[package]] +name = "sp-version-proc-macro" +version = "13.0.0" +dependencies = [ + "parity-scale-codec", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "sp-wasm-interface" +version = "20.0.0" +dependencies = [ + "anyhow", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "sp-std 14.0.0", + "wasmtime", +] + +[[package]] +name = "sp-wasm-interface" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk#de6d02591b57d03f70ed8db0c674f045ad2ea029" +dependencies = [ + "anyhow", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", + "wasmtime", +] + +[[package]] +name = "sp-weights" +version = "27.0.0" +dependencies = [ + "bounded-collections", + "parity-scale-codec", + "scale-info", + "serde", + "smallvec", + "sp-arithmetic", + "sp-debug-derive 14.0.0", + "sp-std 14.0.0", +] + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "ss58-registry" +version = "1.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1114ee5900b8569bbc8b1a014a942f937b752af4b44f4607430b5f86cedaac0" +dependencies = [ + "Inflector", + "num-format", + "proc-macro2", + "quote", + "serde", + "serde_json", + "unicode-xid", +] + +[[package]] +name = "ssz_rs" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "057291e5631f280978fa9c8009390663ca4613359fc1318e36a8c24c392f6d1f" +dependencies = [ + "bitvec", + "num-bigint", + "sha2 0.9.9", + "ssz_rs_derive", +] + +[[package]] +name = "ssz_rs_derive" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f07d54c4d01a1713eb363b55ba51595da15f6f1211435b71466460da022aa140" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "staging-parachain-info" +version = "0.7.0" +dependencies = [ + "cumulus-primitives-core", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0", +] + +[[package]] +name = "staging-xcm" +version = "7.0.0" +dependencies = [ + "array-bytes 6.2.2", + "bounded-collections", + "derivative", + "environmental", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "scale-info", + "serde", + "sp-weights", + "xcm-procedural", +] + +[[package]] +name = "staging-xcm-builder" +version = "7.0.0" +dependencies = [ + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log", + "pallet-transaction-payment", + "parity-scale-codec", + "polkadot-parachain-primitives", + "scale-info", + "sp-arithmetic", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "sp-weights", + "staging-xcm", + "staging-xcm-executor", +] + +[[package]] +name = "staging-xcm-executor" +version = "7.0.0" +dependencies = [ + "environmental", + "frame-benchmarking", + "frame-support", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "sp-weights", + "staging-xcm", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strum" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.24.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "rustversion", + "syn 1.0.109", +] + +[[package]] +name = "substrate-bip39" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e620c7098893ba667438b47169c00aacdd9e7c10e042250ce2b60b087ec97328" +dependencies = [ + "hmac 0.11.0", + "pbkdf2", + "schnorrkel 0.9.1", + "sha2 0.9.9", + "zeroize", +] + +[[package]] +name = "substrate-wasm-builder" +version = "17.0.0" +dependencies = [ + "build-helper", + "cargo_metadata", + "console", + "filetime", + "parity-wasm", + "polkavm-linker", + "sp-maybe-compressed-blob", + "strum", + "tempfile", + "toml", + "walkdir", + "wasm-opt", +] + +[[package]] +name = "subtle" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.50" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74f1bdc9872430ce9b75da68329d1c1746faf50ffac5f19e02b71e37ff881ffb" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn-solidity" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86b837ef12ab88835251726eb12237655e61ec8dc8a280085d1961cdc3dfd047" +dependencies = [ + "paste", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "synstructure" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", + "unicode-xid", +] + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + +[[package]] +name = "target-lexicon" +version = "0.12.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" + +[[package]] +name = "tempfile" +version = "3.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67" +dependencies = [ + "cfg-if", + "fastrand", + "rustix 0.38.31", + "windows-sys 0.52.0", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "thread_local" +version = "1.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" +dependencies = [ + "cfg-if", + "once_cell", +] + +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + +[[package]] +name = "tinyvec" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "toml" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit 0.22.6", +] + +[[package]] +name = "toml_datetime" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap 2.2.3", + "toml_datetime", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.20.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" +dependencies = [ + "indexmap 2.2.3", + "toml_datetime", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" +dependencies = [ + "indexmap 2.2.3", + "toml_datetime", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.22.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c1b5fd4128cc8d3e0cb74d4ed9a9cc7c7284becd4df68f5f940e1ad123606f6" +dependencies = [ + "indexmap 2.2.3", + "serde", + "serde_spanned", + "toml_datetime", + "winnow 0.6.2", +] + +[[package]] +name = "tracing" +version = "0.1.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "tracing-core" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f751112709b4e791d8ce53e32c4ed2d353565a795ce84da2285393f41557bdf2" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-serde" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1" +dependencies = [ + "serde", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.2.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71" +dependencies = [ + "ansi_term", + "chrono", + "lazy_static", + "matchers", + "regex", + "serde", + "serde_json", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", + "tracing-serde", +] + +[[package]] +name = "trie-db" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff28e0f815c2fea41ebddf148e008b077d2faddb026c9555b29696114d602642" +dependencies = [ + "hash-db", + "hashbrown 0.13.2", + "log", + "rustc-hex", + "smallvec", +] + +[[package]] +name = "trie-root" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" +dependencies = [ + "hash-db", +] + +[[package]] +name = "tt-call" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f195fd851901624eee5a58c4bb2b4f06399148fcd0ed336e6f1cb60a9881df" + +[[package]] +name = "twox-hash" +version = "1.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" +dependencies = [ + "cfg-if", + "digest 0.10.7", + "rand", + "static_assertions", +] + +[[package]] +name = "typenum" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" + +[[package]] +name = "ucd-trie" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" + +[[package]] +name = "uint" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76f64bba2c53b04fcab63c01a7d7427eadc821e3bc48c34dc9ba29c501164b52" +dependencies = [ + "byteorder", + "crunchy", + "hex", + "static_assertions", +] + +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + +[[package]] +name = "unicode-bidi" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" + +[[package]] +name = "unicode-ident" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" + +[[package]] +name = "unicode-normalization" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-width" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" + +[[package]] +name = "unicode-xid" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" + +[[package]] +name = "url" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", +] + +[[package]] +name = "valuable" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" + +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + +[[package]] +name = "w3f-bls" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7335e4c132c28cc43caef6adb339789e599e39adbe78da0c4d547fad48cbc331" +dependencies = [ + "ark-bls12-377", + "ark-bls12-381", + "ark-ec", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-serialize-derive", + "arrayref", + "constcat", + "digest 0.10.7", + "rand", + "rand_chacha 0.3.1", + "rand_core 0.6.4", + "sha2 0.10.8", + "sha3", + "thiserror", + "zeroize", +] + +[[package]] +name = "wait-timeout" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" +dependencies = [ + "libc", +] + +[[package]] +name = "walkdir" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "wasm-bindgen" +version = "0.2.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1e124130aee3fb58c5bdd6b639a0509486b0338acaaae0c84a5124b0f588b7f" +dependencies = [ + "cfg-if", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9e7e1900c352b609c8488ad12639a311045f40a35491fb69ba8c12f758af70b" +dependencies = [ + "bumpalo", + "log", + "once_cell", + "proc-macro2", + "quote", + "syn 2.0.50", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877b9c3f61ceea0e56331985743b13f3d25c406a7098d45180fb5f09bc19ed97" +dependencies = [ + "cfg-if", + "js-sys", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b30af9e2d358182b5c7449424f017eba305ed32a7010509ede96cdc4696c46ed" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f186bd2dcf04330886ce82d6f33dd75a7bfcf69ecf5763b89fcde53b6ac9838" + +[[package]] +name = "wasm-bindgen-test" +version = "0.3.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "143ddeb4f833e2ed0d252e618986e18bfc7b0e52f2d28d77d05b2f045dd8eb61" +dependencies = [ + "console_error_panic_hook", + "js-sys", + "scoped-tls", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-bindgen-test-macro", +] + +[[package]] +name = "wasm-bindgen-test-macro" +version = "0.3.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5211b7550606857312bba1d978a8ec75692eae187becc5e680444fffc5e6f89" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "wasm-opt" +version = "0.116.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc942673e7684671f0c5708fc18993569d184265fd5223bb51fc8e5b9b6cfd52" +dependencies = [ + "anyhow", + "libc", + "strum", + "strum_macros", + "tempfile", + "thiserror", + "wasm-opt-cxx-sys", + "wasm-opt-sys", +] + +[[package]] +name = "wasm-opt-cxx-sys" +version = "0.116.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c57b28207aa724318fcec6575fe74803c23f6f266fce10cbc9f3f116762f12e" +dependencies = [ + "anyhow", + "cxx", + "cxx-build", + "wasm-opt-sys", +] + +[[package]] +name = "wasm-opt-sys" +version = "0.116.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a1cce564dc768dacbdb718fc29df2dba80bd21cb47d8f77ae7e3d95ceb98cbe" +dependencies = [ + "anyhow", + "cc", + "cxx", + "cxx-build", +] + +[[package]] +name = "wasmparser" +version = "0.102.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48134de3d7598219ab9eaf6b91b15d8e50d31da76b8519fe4ecfcec2cf35104b" +dependencies = [ + "indexmap 1.9.3", + "url", +] + +[[package]] +name = "wasmtime" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f907fdead3153cb9bfb7a93bbd5b62629472dc06dee83605358c64c52ed3dda9" +dependencies = [ + "anyhow", + "bincode", + "cfg-if", + "indexmap 1.9.3", + "libc", + "log", + "object 0.30.4", + "once_cell", + "paste", + "psm", + "serde", + "target-lexicon", + "wasmparser", + "wasmtime-environ", + "wasmtime-jit", + "wasmtime-runtime", + "windows-sys 0.45.0", +] + +[[package]] +name = "wasmtime-asm-macros" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3b9daa7c14cd4fa3edbf69de994408d5f4b7b0959ac13fa69d465f6597f810d" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "wasmtime-environ" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a990198cee4197423045235bf89d3359e69bd2ea031005f4c2d901125955c949" +dependencies = [ + "anyhow", + "cranelift-entity", + "gimli 0.27.3", + "indexmap 1.9.3", + "log", + "object 0.30.4", + "serde", + "target-lexicon", + "thiserror", + "wasmparser", + "wasmtime-types", +] + +[[package]] +name = "wasmtime-jit" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de48df552cfca1c9b750002d3e07b45772dd033b0b206d5c0968496abf31244" +dependencies = [ + "addr2line 0.19.0", + "anyhow", + "bincode", + "cfg-if", + "cpp_demangle", + "gimli 0.27.3", + "log", + "object 0.30.4", + "rustc-demangle", + "serde", + "target-lexicon", + "wasmtime-environ", + "wasmtime-jit-icache-coherence", + "wasmtime-runtime", + "windows-sys 0.45.0", +] + +[[package]] +name = "wasmtime-jit-debug" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e0554b84c15a27d76281d06838aed94e13a77d7bf604bbbaf548aa20eb93846" +dependencies = [ + "once_cell", +] + +[[package]] +name = "wasmtime-jit-icache-coherence" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aecae978b13f7f67efb23bd827373ace4578f2137ec110bbf6a4a7cde4121bbd" +dependencies = [ + "cfg-if", + "libc", + "windows-sys 0.45.0", +] + +[[package]] +name = "wasmtime-runtime" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "658cf6f325232b6760e202e5255d823da5e348fdea827eff0a2a22319000b441" +dependencies = [ + "anyhow", + "cc", + "cfg-if", + "indexmap 1.9.3", + "libc", + "log", + "mach", + "memfd", + "memoffset", + "paste", + "rand", + "rustix 0.36.17", + "wasmtime-asm-macros", + "wasmtime-environ", + "wasmtime-jit-debug", + "windows-sys 0.45.0", +] + +[[package]] +name = "wasmtime-types" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4f6fffd2a1011887d57f07654dd112791e872e3ff4a2e626aee8059ee17f06f" +dependencies = [ + "cranelift-entity", + "serde", + "thiserror", + "wasmparser", +] + +[[package]] +name = "web-sys" +version = "0.3.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96565907687f7aceb35bc5fc03770a8a0471d82e479f25832f54a0e3f4b28446" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wide" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89beec544f246e679fc25490e3f8e08003bc4bf612068f325120dad4cea02c1c" +dependencies = [ + "bytemuck", + "safe_arch", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" +dependencies = [ + "winapi", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.3", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.3", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d380ba1dc7187569a8a9e91ed34b8ccfc33123bbacb8c0aed2d1ad7f3ef2dc5f" +dependencies = [ + "windows_aarch64_gnullvm 0.52.3", + "windows_aarch64_msvc 0.52.3", + "windows_i686_gnu 0.52.3", + "windows_i686_msvc 0.52.3", + "windows_x86_64_gnu 0.52.3", + "windows_x86_64_gnullvm 0.52.3", + "windows_x86_64_msvc 0.52.3", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68e5dcfb9413f53afd9c8f86e56a7b4d86d9a2fa26090ea2dc9e40fba56c6ec6" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dab469ebbc45798319e69eebf92308e541ce46760b49b18c6b3fe5e8965b30f" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a4e9b6a7cac734a8b4138a4e1044eac3404d8326b6c0f939276560687a033fb" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28b0ec9c422ca95ff34a78755cfa6ad4a51371da2a5ace67500cf7ca5f232c58" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "704131571ba93e89d7cd43482277d6632589b18ecf4468f591fbae0a8b101614" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42079295511643151e98d61c38c0acc444e52dd42ab456f7ccfd5152e8ecf21c" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0770833d60a970638e989b3fa9fd2bb1aaadcf88963d1659fd7d9990196ed2d6" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a4191c47f15cc3ec71fcb4913cb83d58def65dd3787610213c649283b5ce178" +dependencies = [ + "memchr", +] + +[[package]] +name = "wyz" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +dependencies = [ + "tap", +] + +[[package]] +name = "xcm-procedural" +version = "7.0.0" +dependencies = [ + "Inflector", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "zerocopy" +version = "0.7.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "zeroize" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "zstd" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a27595e173641171fc74a1232b7b1c7a7cb6e18222c11e9dfb9888fa424c53c" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "6.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee98ffd0b48ee95e6c5168188e44a54550b1564d9d530ee21d5f0eaed1069581" +dependencies = [ + "libc", + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.9+zstd.1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e16efa8a874a0481a574084d34cc26fdb3b99627480f785888deb6386506656" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/bridges/snowbridge/Cargo.toml b/bridges/snowbridge/Cargo.toml new file mode 100644 index 000000000000..9b03737260f5 --- /dev/null +++ b/bridges/snowbridge/Cargo.toml @@ -0,0 +1,67 @@ +[workspace.package] +authors = ["Snowfork "] +edition = "2021" +repository = "https://github.com/snowfork/polkadot-sdk.git" + +[workspace] +resolver = "2" +members = [ + "pallets/ethereum-client", + "pallets/ethereum-client/fixtures", + "pallets/inbound-queue", + "pallets/inbound-queue/fixtures", + "pallets/outbound-queue", + "pallets/outbound-queue/merkle-tree", + "pallets/outbound-queue/runtime-api", + "pallets/system", + "pallets/system/runtime-api", + "primitives/beacon", + "primitives/core", + "primitives/ethereum", + "primitives/router", + "runtime/runtime-common", + "runtime/test-common", +] + + +[workspace.lints.rust] +suspicious_double_ref_op = { level = "allow", priority = 2 } + +[workspace.lints.clippy] +all = { level = "allow", priority = 0 } +correctness = { level = "warn", priority = 1 } +complexity = { level = "warn", priority = 1 } +if-same-then-else = { level = "allow", priority = 2 } +zero-prefixed-literal = { level = "allow", priority = 2 } # 00_1000_000 +type_complexity = { level = "allow", priority = 2 } # raison d'etre +nonminimal-bool = { level = "allow", priority = 2 } # maybe +borrowed-box = { level = "allow", priority = 2 } # Reasonable to fix this one +too-many-arguments = { level = "allow", priority = 2 } # (Turning this on would lead to) +needless-lifetimes = { level = "allow", priority = 2 } # generated code +unnecessary_cast = { level = "allow", priority = 2 } # Types may change +identity-op = { level = "allow", priority = 2 } # One case where we do 0 + +useless_conversion = { level = "allow", priority = 2 } # Types may change +unit_arg = { level = "allow", priority = 2 } # stylistic +option-map-unit-fn = { level = "allow", priority = 2 } # stylistic +bind_instead_of_map = { level = "allow", priority = 2 } # stylistic +erasing_op = { level = "allow", priority = 2 } # E.g. 0 * DOLLARS +eq_op = { level = "allow", priority = 2 } # In tests we test equality. +while_immutable_condition = { level = "allow", priority = 2 } # false positives +needless_option_as_deref = { level = "allow", priority = 2 } # false positives +derivable_impls = { level = "allow", priority = 2 } # false positives +stable_sort_primitive = { level = "allow", priority = 2 } # prefer stable sort +extra-unused-type-parameters = { level = "allow", priority = 2 } # stylistic +default_constructed_unit_structs = { level = "allow", priority = 2 } # stylistic + +[workspace.dependencies] +polkavm-linker = "0.8.2" +polkavm-derive = "0.8.0" +log = { version = "0.4.20", default-features = false } +quote = { version = "1.0.33" } +serde = { version = "1.0.197", default-features = false } +serde-big-array = { version = "0.3.2" } +serde_derive = { version = "1.0.117" } +serde_json = { version = "1.0.114", default-features = false } +serde_yaml = { version = "0.9" } +syn = { version = "2.0.50" } +thiserror = { version = "1.0.48" } diff --git a/bridges/snowbridge/scripts/run-tests-all-features.sh b/bridges/snowbridge/scripts/run-tests-all-features.sh deleted file mode 100755 index 359c4cd4e7c6..000000000000 --- a/bridges/snowbridge/scripts/run-tests-all-features.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -set -eu - -for package in $(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name | startswith("snowbridge")) | .name'); do - echo "Running tests for package: $package" - cargo test -p "$package" --all-features -done diff --git a/bridges/snowbridge/scripts/run-tests-benchmarks.sh b/bridges/snowbridge/scripts/run-tests-benchmarks.sh deleted file mode 100755 index 83c42c9c6135..000000000000 --- a/bridges/snowbridge/scripts/run-tests-benchmarks.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -set -eu - -for package in $(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name | startswith("snowbridge")) | .name'); do - echo "Running benchmarks tests for package: $package" - cargo test -p "$package" --features runtime-benchmarks -done From 2a99da983d50bcc34db0f4b2a518746cb1475054 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Sun, 25 Feb 2024 15:20:51 +0200 Subject: [PATCH 114/130] revert coverage jobs --- .github/workflows/parachain.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index 96c1ba53b31f..a0ea23250cb1 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -140,14 +140,17 @@ jobs: - name: setup rust toolchain run: rustup show - name: run coverage test + working-directory: bridges/snowbridge run: > cargo install cargo-tarpaulin@0.27.0 && cargo tarpaulin + --workspace --engine llvm --out xml - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v3 with: + working-directory: bridges/snowbridge files: cobertura.xml flags: rust From f4c337b30abeb41437ffd9ba52924fcd9092f221 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Sun, 25 Feb 2024 15:21:29 +0200 Subject: [PATCH 115/130] revert formatting --- bridges/snowbridge/Cargo.toml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/bridges/snowbridge/Cargo.toml b/bridges/snowbridge/Cargo.toml index 9b03737260f5..ca70de1d0e07 100644 --- a/bridges/snowbridge/Cargo.toml +++ b/bridges/snowbridge/Cargo.toml @@ -6,21 +6,21 @@ repository = "https://github.com/snowfork/polkadot-sdk.git" [workspace] resolver = "2" members = [ - "pallets/ethereum-client", - "pallets/ethereum-client/fixtures", - "pallets/inbound-queue", - "pallets/inbound-queue/fixtures", - "pallets/outbound-queue", - "pallets/outbound-queue/merkle-tree", - "pallets/outbound-queue/runtime-api", - "pallets/system", - "pallets/system/runtime-api", - "primitives/beacon", - "primitives/core", - "primitives/ethereum", - "primitives/router", - "runtime/runtime-common", - "runtime/test-common", + "pallets/ethereum-client", + "pallets/ethereum-client/fixtures", + "pallets/inbound-queue", + "pallets/inbound-queue/fixtures", + "pallets/outbound-queue", + "pallets/outbound-queue/merkle-tree", + "pallets/outbound-queue/runtime-api", + "pallets/system", + "pallets/system/runtime-api", + "primitives/beacon", + "primitives/core", + "primitives/ethereum", + "primitives/router", + "runtime/runtime-common", + "runtime/test-common", ] From 02f4ca1cd4497913c3c4cf8757fa2a51f53332a4 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 26 Feb 2024 11:03:10 +0200 Subject: [PATCH 116/130] check log --- .github/workflows/smoketest.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index b44ac24274be..57541c3a2472 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -63,6 +63,10 @@ jobs: ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' continue-on-error: true + - name: Check output dir + run: "env | grep OUTPUT_DIR" + - name: Check log file exists + run: "cd ${{ env.OUTPUT_DIR }} && ls" - name: Save start-services log file uses: actions/upload-artifact@v3 with: From 99f07999347af5577e9eb47e95277b00dbece1d0 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 26 Feb 2024 13:46:36 +0200 Subject: [PATCH 117/130] fix log --- .github/workflows/smoketest.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index 57541c3a2472..cfa3fbb0db18 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -22,8 +22,11 @@ jobs: success: ${{ steps.run_e2e_stack.outcome == 'success' }} steps: - name: Set build directory environment variable - run: echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV - - run: mkdir -p $OUTPUT_DIR + run: | + echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV + echo "LOG_DIR=${GITHUB_WORKSPACE}/log-tmp" >> $GITHUB_ENV + mkdir -p $OUTPUT_DIR + mkdir -p $LOG_DIR - uses: actions/checkout@v2 with: repository: snowfork/snowbridge @@ -58,20 +61,20 @@ jobs: ./scripts/init.sh && cd web/packages/test && echo "DIR IS: ${{ env.OUTPUT_DIR }}" && - (./scripts/start-services.sh > "${{ env.OUTPUT_DIR }}/start-services.log" 2>&1 &) && + (./scripts/start-services.sh > "${{ env.LOG_DIR }}/start-services.log" 2>&1 &) && sleep 10 && ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' continue-on-error: true - name: Check output dir - run: "env | grep OUTPUT_DIR" + run: "env | grep LOG_DIR" - name: Check log file exists - run: "cd ${{ env.OUTPUT_DIR }} && ls" + run: "cd ${{ env.LOG_DIR }} && ls" - name: Save start-services log file uses: actions/upload-artifact@v3 with: name: start-services.log - path: "${{ env.OUTPUT_DIR }}/start-services.log" + path: "${{ env.LOG_DIR }}/start-services.log" - name: check E2E test outcome if: ${{ steps.run_e2e_stack.outcome != 'success' }} run: | From 88e48d3d5b8de69e0f2ee4336c04bd06ac264201 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 26 Feb 2024 13:48:50 +0200 Subject: [PATCH 118/130] separate steps --- .github/workflows/smoketest.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index cfa3fbb0db18..d979ecc0b058 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -22,11 +22,11 @@ jobs: success: ${{ steps.run_e2e_stack.outcome == 'success' }} steps: - name: Set build directory environment variable - run: | - echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV - echo "LOG_DIR=${GITHUB_WORKSPACE}/log-tmp" >> $GITHUB_ENV - mkdir -p $OUTPUT_DIR - mkdir -p $LOG_DIR + run: echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV + - name: Set log directory environment variable + run: echo "LOG_DIR=${GITHUB_WORKSPACE}/log-tmp" >> $GITHUB_ENV + - name: Create directories + run: mkdir -p $OUTPUT_DIR && mkdir -p $LOG_DIR - uses: actions/checkout@v2 with: repository: snowfork/snowbridge From 3c617a1fb80c0785c1c3573974c5b535761fc0fd Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 26 Feb 2024 14:54:23 +0200 Subject: [PATCH 119/130] cleanup job --- .github/workflows/smoketest.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index d979ecc0b058..a0a7334e7606 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -60,16 +60,11 @@ jobs: nix develop -c sh -c ' ./scripts/init.sh && cd web/packages/test && - echo "DIR IS: ${{ env.OUTPUT_DIR }}" && (./scripts/start-services.sh > "${{ env.LOG_DIR }}/start-services.log" 2>&1 &) && sleep 10 && ./scripts/check-relayer.sh && ./scripts/run-smoketests.sh' continue-on-error: true - - name: Check output dir - run: "env | grep LOG_DIR" - - name: Check log file exists - run: "cd ${{ env.LOG_DIR }} && ls" - name: Save start-services log file uses: actions/upload-artifact@v3 with: From 48cac893d906f0ba278cacf8a35d0bd0369711fd Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 26 Feb 2024 19:41:05 +0200 Subject: [PATCH 120/130] remove running smoketests on a PR, only when merged --- .github/workflows/smoketest.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index a0a7334e7606..ea7784d1a321 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -8,7 +8,6 @@ on: - "!bridges/snowbridge/LICENSE" branches: - snowbridge - pull_request: workflow_dispatch: jobs: From 28f5c47649169d2a52c1b0f8652b778151bf5825 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 28 Feb 2024 10:52:50 +0200 Subject: [PATCH 121/130] update branch --- .github/workflows/smoketest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index ea7784d1a321..b983dfcf6a36 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -29,7 +29,7 @@ jobs: - uses: actions/checkout@v2 with: repository: snowfork/snowbridge - ref: smoketests-ci + ref: main path: snowbridge submodules: "true" - run: rm -f snowbridge/polkadot-sdk From 7748fc1fcca058fcfbb254fa625626f91842a9ab Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 4 Mar 2024 10:11:52 +0200 Subject: [PATCH 122/130] remove http endpoint from relayer --- .github/workflows/smoketest.yml | 1 + .../pallets/inbound-queue/src/envelope.rs | 62 ++++++++++++++++++- .../primitives/beacon/src/receipt.rs | 5 ++ 3 files changed, 67 insertions(+), 1 deletion(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index b983dfcf6a36..ace6e98431ec 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -8,6 +8,7 @@ on: - "!bridges/snowbridge/LICENSE" branches: - snowbridge + pull_request: workflow_dispatch: jobs: diff --git a/bridges/snowbridge/pallets/inbound-queue/src/envelope.rs b/bridges/snowbridge/pallets/inbound-queue/src/envelope.rs index 826d535c2cb9..3eb6035d8733 100644 --- a/bridges/snowbridge/pallets/inbound-queue/src/envelope.rs +++ b/bridges/snowbridge/pallets/inbound-queue/src/envelope.rs @@ -5,8 +5,14 @@ use snowbridge_core::{inbound::Log, ChannelId}; use sp_core::{RuntimeDebug, H160, H256}; use sp_std::{convert::TryFrom, prelude::*}; -use alloy_primitives::B256; +use alloy_primitives::{B256, hex}; use alloy_sol_types::{sol, SolEvent}; +use snowbridge_router_primitives::inbound::{MessageV1, VersionedMessage}; +use codec::{Encode, DecodeAll}; +use snowbridge_beacon_primitives::verify_receipt_proof; +use snowbridge_router_primitives::inbound::Command::{RegisterToken, SendToken}; +use snowbridge_router_primitives::inbound::VersionedMessage::V1; +use snowbridge_core::inbound::Proof; sol! { event OutboundMessageAccepted(bytes32 indexed channel_id, uint64 nonce, bytes32 indexed message_id, bytes payload); @@ -48,3 +54,57 @@ impl TryFrom<&Log> for Envelope { }) } } + +#[test] +fn test_log() { + use hex_literal::hex; + let log = Log { + address: hex!("eda338e4dc46038493b885327842fd3e301cab39").into(), + topics: vec![ + hex!("7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f").into(), + hex!("c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539").into(), + hex!("c8eaf22f2cb07bac4679df0a660e7115ed87fcfd4e32ac269f6540265bbbd26f").into(), + ], + data: hex!("00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005f0001000000000000000187d1f7fdfee7f651fabc8bfcb6e086c278b77a7d008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48000064a7b3b6e00d000000000000000000e40b5402000000000000000000000000").into(), + }; + let proof = &Proof { + block_hash: hex!("d3c155f123c3cbff22f3d7869283e02179edea9ffa7a5e9a4d8414c2a6b8991f").into(), + tx_index: 0, + data: (vec![ + hex!("9f3340b57eddc1f86de30776db57faeca80269a3dd459031741988dec240ce34").to_vec(), + ], vec![ + hex!("f90451822080b9044b02f90447018301bcb9b9010000800000000000000000000020000000000000000000004000000000000000000400000000000000000000001000000010000000000000000000000008000000200000000000000001000008000000000000000000000000000000008000080000000000200000000000000000000000000100000000000000000011000000000000020200000000000000000000000000003000000040080008000000000000000000040044000021000000002000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000200800000000000f9033cf89b9487d1f7fdfee7f651fabc8bfcb6e086c278b77a7df863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa000000000000000000000000090a987b944cb1dcce5564e5fdecd7a54d3de27fea000000000000000000000000057a2d4ff0c3866d96556884bf09fecdd7ccd530ca00000000000000000000000000000000000000000000000000de0b6b3a7640000f9015d94eda338e4dc46038493b885327842fd3e301cab39f884a024c5d2de620c6e25186ae16f6919eba93b6e2c1a33857cc419d9f3a00d6967e9a000000000000000000000000090a987b944cb1dcce5564e5fdecd7a54d3de27fea000000000000000000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7da000000000000000000000000000000000000000000000000000000000000003e8b8c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000208eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48f9013c94eda338e4dc46038493b885327842fd3e301cab39f863a07153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84fa0c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539a0c8eaf22f2cb07bac4679df0a660e7115ed87fcfd4e32ac269f6540265bbbd26fb8c000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005f0001000000000000000187d1f7fdfee7f651fabc8bfcb6e086c278b77a7d008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48000064a7b3b6e00d000000000000000000e40b5402000000000000000000000000").to_vec(), + ]), + }; + + let topics: Vec = log.topics.iter().map(|x| B256::from_slice(x.as_ref())).collect(); + + let event = OutboundMessageAccepted::decode_log(topics, &log.data, true) + .map_err(|_| EnvelopeDecodeError).unwrap(); + + println!("event: {:?}", hex::encode(event.payload.clone())); + + match VersionedMessage::decode_all(&mut event.payload.as_ref()) { + Ok(message) => { + match message { + V1(MessageV1 { chain_id, command }) => { + println!("chain_id: {}", chain_id); + let message_v1 = MessageV1 { + chain_id: 1, // Example chain_id + command, // Example command + }; + + let versioned_message = VersionedMessage::V1(message_v1.clone()); + let payload2 = versioned_message.encode(); + + println!("payload2: {:?}", hex::encode(payload2)); + + verify_receipt_proof(H256::default(),&proof.data.1); + }, + } + }, + Err(_) => panic!("cannot decode"), + }; + + +} diff --git a/bridges/snowbridge/primitives/beacon/src/receipt.rs b/bridges/snowbridge/primitives/beacon/src/receipt.rs index 0588f3f73f71..6655a222b0bd 100644 --- a/bridges/snowbridge/primitives/beacon/src/receipt.rs +++ b/bridges/snowbridge/primitives/beacon/src/receipt.rs @@ -10,6 +10,11 @@ pub fn verify_receipt_proof( receipts_root: H256, proof: &[Vec], ) -> Option> { + //let amp = apply_merkle_proof(proof); + //match amp { + // Some((root, data)) => { println!("ROOT: {:?}", root)} + // _ => {} + //}; match apply_merkle_proof(proof) { Some((root, data)) if root == receipts_root => Some(rlp::decode(&data)), Some((_, _)) => None, From 8fdc5a99aa663112a25862ebfc8135814fe7d402 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 4 Mar 2024 10:26:36 +0200 Subject: [PATCH 123/130] update nightly, revert unrelated changes --- .../pallets/inbound-queue/src/envelope.rs | 62 +------------------ .../primitives/beacon/src/receipt.rs | 5 -- 2 files changed, 1 insertion(+), 66 deletions(-) diff --git a/bridges/snowbridge/pallets/inbound-queue/src/envelope.rs b/bridges/snowbridge/pallets/inbound-queue/src/envelope.rs index 3eb6035d8733..826d535c2cb9 100644 --- a/bridges/snowbridge/pallets/inbound-queue/src/envelope.rs +++ b/bridges/snowbridge/pallets/inbound-queue/src/envelope.rs @@ -5,14 +5,8 @@ use snowbridge_core::{inbound::Log, ChannelId}; use sp_core::{RuntimeDebug, H160, H256}; use sp_std::{convert::TryFrom, prelude::*}; -use alloy_primitives::{B256, hex}; +use alloy_primitives::B256; use alloy_sol_types::{sol, SolEvent}; -use snowbridge_router_primitives::inbound::{MessageV1, VersionedMessage}; -use codec::{Encode, DecodeAll}; -use snowbridge_beacon_primitives::verify_receipt_proof; -use snowbridge_router_primitives::inbound::Command::{RegisterToken, SendToken}; -use snowbridge_router_primitives::inbound::VersionedMessage::V1; -use snowbridge_core::inbound::Proof; sol! { event OutboundMessageAccepted(bytes32 indexed channel_id, uint64 nonce, bytes32 indexed message_id, bytes payload); @@ -54,57 +48,3 @@ impl TryFrom<&Log> for Envelope { }) } } - -#[test] -fn test_log() { - use hex_literal::hex; - let log = Log { - address: hex!("eda338e4dc46038493b885327842fd3e301cab39").into(), - topics: vec![ - hex!("7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f").into(), - hex!("c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539").into(), - hex!("c8eaf22f2cb07bac4679df0a660e7115ed87fcfd4e32ac269f6540265bbbd26f").into(), - ], - data: hex!("00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005f0001000000000000000187d1f7fdfee7f651fabc8bfcb6e086c278b77a7d008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48000064a7b3b6e00d000000000000000000e40b5402000000000000000000000000").into(), - }; - let proof = &Proof { - block_hash: hex!("d3c155f123c3cbff22f3d7869283e02179edea9ffa7a5e9a4d8414c2a6b8991f").into(), - tx_index: 0, - data: (vec![ - hex!("9f3340b57eddc1f86de30776db57faeca80269a3dd459031741988dec240ce34").to_vec(), - ], vec![ - hex!("f90451822080b9044b02f90447018301bcb9b9010000800000000000000000000020000000000000000000004000000000000000000400000000000000000000001000000010000000000000000000000008000000200000000000000001000008000000000000000000000000000000008000080000000000200000000000000000000000000100000000000000000011000000000000020200000000000000000000000000003000000040080008000000000000000000040044000021000000002000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000200800000000000f9033cf89b9487d1f7fdfee7f651fabc8bfcb6e086c278b77a7df863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa000000000000000000000000090a987b944cb1dcce5564e5fdecd7a54d3de27fea000000000000000000000000057a2d4ff0c3866d96556884bf09fecdd7ccd530ca00000000000000000000000000000000000000000000000000de0b6b3a7640000f9015d94eda338e4dc46038493b885327842fd3e301cab39f884a024c5d2de620c6e25186ae16f6919eba93b6e2c1a33857cc419d9f3a00d6967e9a000000000000000000000000090a987b944cb1dcce5564e5fdecd7a54d3de27fea000000000000000000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7da000000000000000000000000000000000000000000000000000000000000003e8b8c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000208eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48f9013c94eda338e4dc46038493b885327842fd3e301cab39f863a07153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84fa0c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539a0c8eaf22f2cb07bac4679df0a660e7115ed87fcfd4e32ac269f6540265bbbd26fb8c000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005f0001000000000000000187d1f7fdfee7f651fabc8bfcb6e086c278b77a7d008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48000064a7b3b6e00d000000000000000000e40b5402000000000000000000000000").to_vec(), - ]), - }; - - let topics: Vec = log.topics.iter().map(|x| B256::from_slice(x.as_ref())).collect(); - - let event = OutboundMessageAccepted::decode_log(topics, &log.data, true) - .map_err(|_| EnvelopeDecodeError).unwrap(); - - println!("event: {:?}", hex::encode(event.payload.clone())); - - match VersionedMessage::decode_all(&mut event.payload.as_ref()) { - Ok(message) => { - match message { - V1(MessageV1 { chain_id, command }) => { - println!("chain_id: {}", chain_id); - let message_v1 = MessageV1 { - chain_id: 1, // Example chain_id - command, // Example command - }; - - let versioned_message = VersionedMessage::V1(message_v1.clone()); - let payload2 = versioned_message.encode(); - - println!("payload2: {:?}", hex::encode(payload2)); - - verify_receipt_proof(H256::default(),&proof.data.1); - }, - } - }, - Err(_) => panic!("cannot decode"), - }; - - -} diff --git a/bridges/snowbridge/primitives/beacon/src/receipt.rs b/bridges/snowbridge/primitives/beacon/src/receipt.rs index 6655a222b0bd..0588f3f73f71 100644 --- a/bridges/snowbridge/primitives/beacon/src/receipt.rs +++ b/bridges/snowbridge/primitives/beacon/src/receipt.rs @@ -10,11 +10,6 @@ pub fn verify_receipt_proof( receipts_root: H256, proof: &[Vec], ) -> Option> { - //let amp = apply_merkle_proof(proof); - //match amp { - // Some((root, data)) => { println!("ROOT: {:?}", root)} - // _ => {} - //}; match apply_merkle_proof(proof) { Some((root, data)) if root == receipts_root => Some(rlp::decode(&data)), Some((_, _)) => None, From a97f2d653e6bdc29a5280ec6b93e872587192c00 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 4 Mar 2024 10:33:04 +0200 Subject: [PATCH 124/130] check rust version --- .github/workflows/parachain.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/parachain.yml b/.github/workflows/parachain.yml index a0ea23250cb1..f9218febe1a5 100644 --- a/.github/workflows/parachain.yml +++ b/.github/workflows/parachain.yml @@ -24,7 +24,7 @@ jobs: RUST_BACKTRACE: 1 RUSTFLAGS: -C debuginfo=1 SKIP_WASM_BUILD: 1 - RUST_NIGHTLY_VERSION: nightly-2023-05-23 + RUST_NIGHTLY_VERSION: nightly-2023-12-28 steps: - uses: actions/checkout@v2 with: From 904363372ce811ea25fbfbd601861df38dddca30 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 4 Mar 2024 10:36:54 +0200 Subject: [PATCH 125/130] chaneg branch for testing --- .github/workflows/smoketest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index ace6e98431ec..a0a7334e7606 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v2 with: repository: snowfork/snowbridge - ref: main + ref: smoketests-ci path: snowbridge submodules: "true" - run: rm -f snowbridge/polkadot-sdk From f1a3e38da74f4dfa025f3655bfc435e1b92c4343 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 4 Mar 2024 11:34:25 +0200 Subject: [PATCH 126/130] adds beacon relay log --- .github/workflows/smoketest.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index a0a7334e7606..d18ee6f40a3d 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -70,6 +70,11 @@ jobs: with: name: start-services.log path: "${{ env.LOG_DIR }}/start-services.log" + - name: Save beacon-relay log file + uses: actions/upload-artifact@v3 + with: + name: beacon-relay.log + path: "${{ env.OUTPUT_DIR }}/beacon-relay.log" - name: check E2E test outcome if: ${{ steps.run_e2e_stack.outcome != 'success' }} run: | From e0b8a566455914f2d5f9587726a61ca5314fee6c Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 4 Mar 2024 12:50:06 +0200 Subject: [PATCH 127/130] increase slot time --- .github/workflows/smoketest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index d18ee6f40a3d..397a88354c45 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -75,6 +75,7 @@ jobs: with: name: beacon-relay.log path: "${{ env.OUTPUT_DIR }}/beacon-relay.log" + - run: ls - name: check E2E test outcome if: ${{ steps.run_e2e_stack.outcome != 'success' }} run: | From 1e4012b5ec871200afafa7f30f2310094e18cbec Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 4 Mar 2024 14:40:56 +0200 Subject: [PATCH 128/130] increase block time check --- .github/workflows/smoketest.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index 397a88354c45..d18ee6f40a3d 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -75,7 +75,6 @@ jobs: with: name: beacon-relay.log path: "${{ env.OUTPUT_DIR }}/beacon-relay.log" - - run: ls - name: check E2E test outcome if: ${{ steps.run_e2e_stack.outcome != 'success' }} run: | From 0fef2fd4b064e262134e805e465e1809f46a3eb9 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 5 Mar 2024 11:14:10 +0200 Subject: [PATCH 129/130] lower block check count --- .github/workflows/smoketest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index d18ee6f40a3d..397a88354c45 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -75,6 +75,7 @@ jobs: with: name: beacon-relay.log path: "${{ env.OUTPUT_DIR }}/beacon-relay.log" + - run: ls - name: check E2E test outcome if: ${{ steps.run_e2e_stack.outcome != 'success' }} run: | From f4a9672aa90f3c4fbcac608c7bf2c30a0c6b5c4c Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 5 Mar 2024 13:04:25 +0200 Subject: [PATCH 130/130] only run smoketests on merge to snowbridge --- .github/workflows/smoketest.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index 397a88354c45..f4faff491be9 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -8,7 +8,6 @@ on: - "!bridges/snowbridge/LICENSE" branches: - snowbridge - pull_request: workflow_dispatch: jobs: @@ -37,7 +36,7 @@ jobs: - uses: actions/checkout@v2 with: repository: snowfork/polkadot-sdk - ref: smoketests-ci + ref: main path: snowbridge/polkadot-sdk - uses: arduino/setup-protoc@v2 with: