-
Notifications
You must be signed in to change notification settings - Fork 38
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
chore: fix build and wrapper generation & regenerate #8
Conversation
There are still some things to fix. Hence back to draft. |
d5630dd
to
df82116
Compare
ValsetUpdateEvent *wrappers.PeggyValsetUpdatedEvent | ||
ERC20DeployedEvent *wrappers.PeggyERC20DeployedEvent | ||
EventNonce uint64 | ||
ValsetUpdateEvent *wrappers.QuantumGravityBridgeValidatorSetUpdatedEvent |
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.
The event PeggyTransactionBatchExecutedEvent
was renamed in the contract to MessageTupleRootEvent
. You could argue it's the only actual critical part of the contracts that needed to be modified. This PR is fine I think, but we need to replace the function that watched for PeggyTransactionBatchExecutedEvent
with one that watches for MessageTupleRootEvent
in the relayer (not sure why it's under the orchestrator).
|
||
// RelayBatches checks the last validator set on Ethereum, if it's lower than our latest valida | ||
// set then we should package and submit the update as an Ethereum transaction | ||
func (s *peggyRelayer) RelayBatches(ctx context.Context) error { |
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.
This is probably what we want to replace with code to relay message tuple roots.
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.
Yeah, I but I feel this PR was already way, way too large 😬
There are a few things that need to be done:
- integration tests need to be cleaned up
- message tuple roots creating and add in that method here (above) and in the corresponding interface
- ValeSetRootHash needs to be created (note that the validators here used do additionally sign the valsetUpdates with a different signing key from the tendermint one as far as I understand; just noting that as it might be easier to keep it that way instead of changing everything to ecdsa in tendermint directly)
- ...
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.
Lots of commented-out code, but that's fine. Should have enough info just from that to know where modifications need to be done.
Tests will still fail but at least the build works again.
Fixes #7