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

[BREAKING] feat: adding vault issuing active event #961

Closed
wants to merge 4 commits into from

Conversation

jtfirek
Copy link

@jtfirek jtfirek commented Mar 7, 2023

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)

@jtfirek jtfirek requested a review from sander2 March 7, 2023 17:01
@sander2 sander2 changed the title feat: adding vault issuing active event [BREAKING] feat: adding vault issuing active event Mar 8, 2023
sander2
sander2 previously approved these changes Mar 8, 2023
Copy link
Member

@sander2 sander2 left a 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?

@gregdhill
Copy link
Member

lgtm. @gregdhill do you have any objections to merging this?

No we can even already include this in the next release, need to run cargo fmt first though.

@jtfirek
Copy link
Author

jtfirek commented Mar 8, 2023

I ran cargo fmt and pushed the changes

@@ -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 {
Copy link
Member

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.

Copy link
Author

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

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