-
Notifications
You must be signed in to change notification settings - Fork 312
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
Orbiters: add storage entry RegisteredOrbiter & events OrbiterRegistered & OrbiterUnRegistered #1593
Conversation
@@ -307,7 +319,13 @@ pub mod pallet { | |||
&T::OrbiterReserveIdentifier::get(), | |||
&orbiter, | |||
min_orbiter_deposit, | |||
) | |||
)?; | |||
RegisteredOrbiter::<T>::insert(&orbiter, true); |
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.
Changes benchmark, although if this is a rush I dont think there is much issue with this
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 can add a write to the weighInfo impl
pallets/moonbeam-orbiters/src/lib.rs
Outdated
deposit: BalanceOf<T>, | ||
}, | ||
/// An orbiter has unregistered | ||
OrbiterUnRegistered { account: T::AccountId }, |
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.
OrbiterUnRegistered { account: T::AccountId }, | |
OrbiterUnregistered { account: T::AccountId }, |
Unregistered is a single word so camelcase isn't needed
Co-authored-by: Amar Singh <asinghchrony@protonmail.com>
…red & OrbiterUnRegistered (#1593) * feat(orbiter): add storage entry RegisteredOrbiter * feat(orbiter): add events OrbiterRegistered & OrbiterUnRegistered * Adapt rust tests * fmt * account 1 more write for orbiters register and unregister * fix case * Update pallets/moonbeam-orbiters/src/lib.rs Co-authored-by: Amar Singh <asinghchrony@protonmail.com> Co-authored-by: Amar Singh <asinghchrony@protonmail.com>
Let's not forget to do a follow-up with ts-test to it @librelois |
What does it do?
What important points reviewers should know?
Theoretically, it would be necessary to make a migration but as the orbiter is not used yet in the production networks, it will not be implemented.
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?