Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for eth to starlight message passing #772

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ParthDesai
Copy link
Contributor

Description

This PR extends the bridge e2e shell scripts to do following:

  1. Configure execution relay (execution relay == ethereum -> starlight).
  2. Start execution relay.
  3. Use our own fork of snowbridge repository so that we can use updated Gateway contract.

It also extends the typescript test:

  1. Fund the address corresponding to //ExecutionRelay phrase so that relayer can send transaction.
  2. Set correct gateway address read by the inbound queue pallet.
  3. Write a test to send a tx to a dummy function on gateway contract to trigger the bridge, wait for 2 tanssi sessions and make sure that we received the message.

@ParthDesai ParthDesai added B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime/client code not-breaking Does not need to be mentioned in breaking changes labels Dec 2, 2024
Copy link
Contributor

github-actions bot commented Dec 2, 2024

WASM runtime size check:

Compared to target branch

dancebox runtime: 1424 KB (no changes) ✅

flashbox runtime: 820 KB (no changes) ✅

dancelight runtime: 2104 KB (no changes) ✅

container chain template simple runtime: 1124 KB (no changes) ✅

container chain template frontier runtime: 1400 KB (no changes) ✅

Copy link
Contributor

github-actions bot commented Dec 2, 2024

Coverage Report

(master)

@@                                    Coverage Diff                                    @@
##           master   parth-add-support-for-eth-to-starlight-message-passing     +/-   ##
=========================================================================================
  Coverage   64.57%                                                   64.57%   0.00%     
  Files         320                                                      320             
  Lines       55407                                                    55407             
=========================================================================================
  Hits        35777                                                    35777             
  Misses      19630                                                    19630             
Files Changed Coverage

Coverage generated Tue Dec 3 11:56:42 UTC 2024

@@ -15,7 +15,7 @@ if [ -d "$relayer_root_dir" ];
then
echo "Relayer seems to be already setup. Skipping git fetch"
else
git clone https://github.com/Snowfork/snowbridge $relayer_root_dir
git clone https://github.com/moondance-labs/snowbridge $relayer_root_dir
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

People who have already run this script need to remove the snowbridge folder, otherwise it will fail, as it will use the old remote. CI works?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. They will need to remove the old folder. CI should work as we clean up the tmp folder there from what I understand.

cat "$output_dir/contracts.json"
contract_output=$(cat "$output_dir/contracts.json")

echo "{ \"data\": $contract_output, \"ethereum_key\": \"$ethereum_key\" }"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use jq? (untested)

Suggested change
echo "{ \"data\": $contract_output, \"ethereum_key\": \"$ethereum_key\" }"
jq --arg ethereum_key "$ethereum_key" '{data: ., ethereum_key: $ethereum_key}' "$output_dir/contracts.json"

@ParthDesai ParthDesai force-pushed the parth-add-support-for-eth-to-starlight-message-passing branch from a9d9d56 to dca3c6e Compare December 3, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime/client code not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants