-
Notifications
You must be signed in to change notification settings - Fork 55
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(svm): relay root bundle event #683
feat(svm): relay root bundle event #683
Conversation
Signed-off-by: Pablo Maldonado <[email protected]>
programs/svm-spoke/src/event.rs
Outdated
@@ -23,6 +23,13 @@ pub struct EnabledDepositRoute { | |||
pub enabled: bool, | |||
} | |||
|
|||
#[event] | |||
pub struct RelayRootBundleEvent { |
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 named RelayedRootBundle
in EVM. Also the ordering is different (rootBundleId, relayerRefundRoot, slowRelayRoot)
root_bundle_id: state.root_bundle_id, | ||
}); | ||
|
||
// Finally, increment the root bundle id |
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.
not directly related to this PR, but I think its confusing to have prop named root_bundle_id
in state account. Instead it should be something to resemble number of relayed bundles or next_root_bundle_id
- Maybe add this as TODO here
Signed-off-by: Pablo Maldonado <[email protected]>
Signed-off-by: Pablo Maldonado <[email protected]>
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.
nice!
Proposed changes in this PR: