-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
kupermind
commented
Feb 26, 2024
- Wormhole bridging for governance.
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; |
There was a problem hiding this comment.
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.
"@nomicfoundation/hardhat-network-helpers": "^1.0.9", | ||
"@nomicfoundation/hardhat-toolbox": "^2.0.2", |
There was a problem hiding this comment.
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.
@@ -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"} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2
refactor and test: bridging contracts
doc: internal audit based on Optimism and Wormhole contracts