Update Snowbridge versions and prep for publishing (#2894)

- updates snowbridge crates to `0.9.0`
- updates Cargo.toml files in preparation for publishing to crates.io
- adds Kusama and Polkadot Snowbridge runtime config crates
- moves runtime tests from the Snowbridge subtree into the bridge hub
tests dir

---------

Co-authored-by: claravanstaden <Cats 4 life!>
Co-authored-by: Ron <yrong1997@gmail.com>
This commit is contained in:
Clara van Staden
2024-01-10 18:51:27 +02:00
committed by GitHub
parent 6a80c10a6f
commit bab0348372
88 changed files with 579 additions and 490 deletions
@@ -7,9 +7,9 @@ cargo run --release --bin polkadot-parachain \
-- \
benchmark pallet \
--chain=bridge-hub-rococo-dev \
--pallet=snowbridge_ethereum_beacon_client \
--pallet=snowbridge_pallet_ethereum_client \
--extrinsic="*" \
--execution=wasm --wasm-execution=compiled \
--steps 50 --repeat 20 \
--output ./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/snowbridge_ethereum_beacon_client.rs
--output ./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/snowbridge_pallet_ethereum_client.rs
popd
@@ -78,7 +78,7 @@ rm -rf $SNOWBRIDGE_FOLDER/parachain/.gitignore
rm -rf $SNOWBRIDGE_FOLDER/parachain/templates
rm -rf $SNOWBRIDGE_FOLDER/parachain/.cargo
rm -rf $SNOWBRIDGE_FOLDER/parachain/.config
rm -rf $SNOWBRIDGE_FOLDER/parachain/pallets/ethereum-beacon-client/fuzz
rm -rf $SNOWBRIDGE_FOLDER/parachain/pallets/ethereum-client/fuzz
cd bridges/snowbridge/parachain
@@ -93,18 +93,18 @@ find "." -name 'Cargo.toml' | while read -r file; do
done
# let's test if everything we need compiles
cargo check -p snowbridge-ethereum-beacon-client
cargo check -p snowbridge-ethereum-beacon-client --features runtime-benchmarks
cargo check -p snowbridge-ethereum-beacon-client --features try-runtime
cargo check -p snowbridge-inbound-queue
cargo check -p snowbridge-inbound-queue --features runtime-benchmarks
cargo check -p snowbridge-inbound-queue --features try-runtime
cargo check -p snowbridge-outbound-queue
cargo check -p snowbridge-outbound-queue --features runtime-benchmarks
cargo check -p snowbridge-outbound-queue --features try-runtime
cargo check -p snowbridge-system
cargo check -p snowbridge-system --features runtime-benchmarks
cargo check -p snowbridge-system --features try-runtime
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
cd -