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

Orbiters: add storage entry RegisteredOrbiter & events OrbiterRegistered & OrbiterUnRegistered #1593

Merged
merged 7 commits into from
Jun 13, 2022

Conversation

librelois
Copy link
Collaborator

@librelois librelois commented Jun 13, 2022

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?

@librelois librelois added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit labels Jun 13, 2022
@librelois librelois mentioned this pull request Jun 13, 2022
13 tasks
@@ -307,7 +319,13 @@ pub mod pallet {
&T::OrbiterReserveIdentifier::get(),
&orbiter,
min_orbiter_deposit,
)
)?;
RegisteredOrbiter::<T>::insert(&orbiter, true);
Copy link
Collaborator

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

Copy link
Collaborator Author

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

deposit: BalanceOf<T>,
},
/// An orbiter has unregistered
OrbiterUnRegistered { account: T::AccountId },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>
@librelois librelois merged commit 0923228 into master Jun 13, 2022
@librelois librelois deleted the elois-orbiters-item branch June 13, 2022 15:27
librelois added a commit that referenced this pull request Jun 13, 2022
…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>
@crystalin
Copy link
Collaborator

crystalin commented Jun 13, 2022

Let's not forget to do a follow-up with ts-test to it @librelois

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants