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

Ethereum: Move relayer #3866

Merged
merged 12 commits into from
Apr 11, 2024
Merged

Ethereum: Move relayer #3866

merged 12 commits into from
Apr 11, 2024

Conversation

bruce-riley
Copy link
Contributor

@bruce-riley bruce-riley commented Apr 1, 2024

This PR moves the relayer contracts out of the ethereum folder into relayer/ethereum.

This change is necessary as part of the migration from deploying the core and token bridge contracts with truffle to using forge, which is necessary because truffle is deprecated.

The original plan for this PR was to change the relayer to use the wormhole-solidity-sdk for the IWormhole interface so that it is not directly dependent on the old folder. However, this changed the byte code for the contracts, which changed the devnet deploy address for the proxy contract (because it is deployed with create2), breaking various tests. The decision was made to "kick that can down the road" and not make the move to use the sdk. Instead IWormhole has been copied into the relayer folder. The same goes for the BytesLib library, which was also copied into the relayer folder.

@bruce-riley bruce-riley force-pushed the eth_move_relayer branch 2 times, most recently from 5111ff9 to 4cdbbb9 Compare April 1, 2024 17:50
@evan-gray evan-gray force-pushed the eth_move_relayer branch 4 times, most recently from ff2e971 to 38d62b7 Compare April 2, 2024 14:02
@evan-gray evan-gray marked this pull request as ready for review April 2, 2024 23:40
@evan-gray evan-gray self-requested a review April 2, 2024 23:40
@bruce-riley bruce-riley force-pushed the eth_move_relayer branch 3 times, most recently from dbccf92 to 8fc4fe4 Compare April 3, 2024 14:22
evan-gray
evan-gray previously approved these changes Apr 3, 2024
Copy link
Contributor

@evan-gray evan-gray left a comment

Choose a reason for hiding this comment

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

Confirmed the diffs of the copied files are sane

diff ethereum/.gitignore relayer/ethereum/.gitignore
diff ethereum/Makefile relayer/ethereum/Makefile 
diff ethereum/contracts/interfaces/IWormhole.sol relayer/ethereum/contracts/interfaces/IWormhole.sol
diff ethereum/contracts/libraries/external/BytesLib.sol relayer/ethereum/contracts/libraries/external/BytesLib.sol
diff ethereum/foundry.toml relayer/ethereum/foundry.toml
diff ethereum/package-lock.json relayer/ethereum/package-lock.json
diff ethereum/package.json relayer/ethereum/package.json

@gator-boi
Copy link
Contributor

I think the new relayer directory could use a readme with instructions for building and testing :)

@bruce-riley
Copy link
Contributor Author

@gator-boi I added a basic readme file. More details would need to be provided by whoever owns the relayer contracts.

Copy link
Contributor

@gator-boi gator-boi left a comment

Choose a reason for hiding this comment

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

Reviewed the relayer directory.

@evan-gray evan-gray merged commit 86ef5bf into main Apr 11, 2024
24 checks passed
@evan-gray evan-gray deleted the eth_move_relayer branch April 11, 2024 12:46
@evan-gray evan-gray mentioned this pull request Apr 18, 2024
@nonergodic nonergodic mentioned this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants