-
Notifications
You must be signed in to change notification settings - Fork 83
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
[BREAKING] feat: adding vault issuing active event #961
Conversation
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.
lgtm. @gregdhill do you have any objections to merging this?
No we can even already include this in the next release, need to run |
I ran cargo fmt and pushed the changes |
crates/vault-registry/src/types.rs
Outdated
@@ -513,6 +513,10 @@ impl<T: Config> RichVault<T> { | |||
pub(crate) fn set_accept_new_issues(&mut self, accept_new_issues: bool) -> DispatchResult { | |||
self.update(|v| { | |||
v.status = VaultStatus::Active(accept_new_issues); | |||
Self::deposit_event(Event::<T>::ActiveVault { |
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.
Import Event
in the header or use crate::Event
here.
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.
I used the crate::Event
Over on the squid side of things, I need to know when an change has been made to:
https://github.com/interlay/interbtc/blob/master/crates/vault-registry/src/types.rs#L132
so I added an event to be emitted when this state changes.
Here is a reference to what I am doing in the squid:
interlay/interbtc-squid#51 (comment)