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

feat: wormhole bridging for governance #116

Merged
merged 15 commits into from
Feb 29, 2024
Merged

feat: wormhole bridging for governance #116

merged 15 commits into from
Feb 29, 2024

Conversation

kupermind
Copy link
Collaborator

  • Wormhole bridging for governance.

@kupermind kupermind requested review from 77ph and mariapiamo February 26, 2024 19:06
Comment on lines 65 to 69
uint16 public immutable sourceGovernorChainId;
// Source governor address on L1 that is authorized to propagate the transaction execution across the bridge
address public sourceGovernor;
// Mapping of delivery hashes
mapping(bytes32 => bool) public mapDeliveryHashes;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These are two major differences for the wormhole contract - we need to check the source chain Id, and the delivery hash such that it does not repeat.

Comment on lines +24 to +25
"@nomicfoundation/hardhat-network-helpers": "^1.0.9",
"@nomicfoundation/hardhat-toolbox": "^2.0.2",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updating hardhat packages such that the default EVM is Paris, and we don't have issues with the deployment on networks that don't deal with PUSH0 yet.

77ph
77ph previously approved these changes Feb 27, 2024
@@ -0,0 +1 @@
{"contractVerification":true,"useLedger":false,"derivationPath":"m/44'/60'/2'/0/0","providerName":"celoAlfajores","gasPriceInGwei":"10","networkURL":"https://alfajores-forno.celo-testnet.org","sourceGovernorChainId":"10002","L1WormholeRelayerAddress":"0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470","timelockAddress":"0x14CF2e543AB75B321bcf84C3AcC88d570Ccf9106","L2WormholeRelayerAddress":"0x306B68267Deb7c5DfCDa3619E22E9Ca39C374f84","wormholeMessengerAddress":"0x945550dECe7E40ae70C6ebf5699637927eAF13E9","childMockERC20Address":"0x34235f9D447f9F54167e2Ac7A0F4283cB3fAD669"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

'sourceGovernorChainId' is the source governor wormhole format chain Id.
The source chain should be Ethereum, no?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, "sourceGovernorChainId":"10002" - sepolia
and "celo" here is testnet celo ref: alfajores-forno.celo-testnet.org
so, globals for testnet to testnet

Copy link
Collaborator

@mariapiamo mariapiamo Feb 29, 2024

Choose a reason for hiding this comment

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

ok, thanks.

Copy link
Collaborator

Choose a reason for hiding this comment

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

2

mariapiamo
mariapiamo previously approved these changes Feb 29, 2024
refactor and test: bridging contracts
doc: internal audit based on Optimism and Wormhole contracts
@kupermind kupermind dismissed stale reviews from mariapiamo and 77ph via 0972178 February 29, 2024 17:58
@kupermind kupermind merged commit 9b1a027 into main Feb 29, 2024
3 checks passed
@kupermind kupermind deleted the wormhole branch February 29, 2024 18:59
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