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

feat: change user handle #1647

Merged
merged 29 commits into from
Aug 1, 2023
Merged

feat: change user handle #1647

merged 29 commits into from
Aug 1, 2023

Conversation

rlaferla
Copy link
Contributor

@rlaferla rlaferla commented Jul 28, 2023

Goal

The goal of this PR is add the ability to change a user handle.

Closes #1627

  • A user who already has claimed a user handle can now change it using the change_handle() extrinsic.
  • The change_handle() extrinsic can be paid directly with tokens or with capacity

Changing a user handle, will retire the existing handle and claim a new one. The extrinsic emit HandleRetired and HandleClaimed events.

image

@rlaferla rlaferla requested a review from wilwade as a code owner July 28, 2023 17:34
@rlaferla rlaferla marked this pull request as draft July 28, 2023 17:34
@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Merging #1647 (25f2102) into main (f6fbf84) will decrease coverage by 0.18%.
The diff coverage is 53.84%.

@@            Coverage Diff             @@
##             main    #1647      +/-   ##
==========================================
- Coverage   73.53%   73.35%   -0.18%     
==========================================
  Files          49       49              
  Lines        4889     4924      +35     
==========================================
+ Hits         3595     3612      +17     
- Misses       1294     1312      +18     
Files Changed Coverage Δ
...requency-tx-payment/src/capacity_stable_weights.rs 92.22% <0.00%> (-7.78%) ⬇️
pallets/handles/src/lib.rs 55.70% <65.62%> (+0.33%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Jul 28, 2023
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Jul 28, 2023
@github-actions
Copy link

Running benchmarks and calculating weights. DO NOT MERGE! A new commit will be added upon completion...

@github-actions
Copy link

Finished running benchmarks. Updated weights have been committed to this PR branch in commit 51a0161.

@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Jul 28, 2023
@rlaferla rlaferla marked this pull request as ready for review July 28, 2023 21:11
@rlaferla rlaferla requested a review from a team July 28, 2023 21:11
Copy link
Collaborator

@shannonwells shannonwells left a comment

Choose a reason for hiding this comment

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

I think this needs a little extra testing

pallets/handles/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@wilwade wilwade left a comment

Choose a reason for hiding this comment

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

Just one note to update the stable weights with the benchmark generated one. Otherwise looks good to me from a 👀 check.

@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Jul 31, 2023
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Jul 31, 2023
Copy link
Collaborator

@mattheworris mattheworris left a comment

Choose a reason for hiding this comment

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

One minor comment typo, not necessary to fix.
Looks good. 🚢 it!

pallets/handles/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: Matthew Orris <1466844+mattheworris@users.noreply.github.com>
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Aug 1, 2023
@rlaferla rlaferla enabled auto-merge (squash) August 1, 2023 15:08
Copy link
Collaborator

@shannonwells shannonwells left a comment

Choose a reason for hiding this comment

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

Cool beans with awesome sauce

@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Aug 1, 2023
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Aug 1, 2023
@rlaferla rlaferla merged commit 1a10f62 into main Aug 1, 2023
30 checks passed
@rlaferla rlaferla deleted the 1627-user-handles-handle-swapping branch August 1, 2023 22:19
@wilwade wilwade added the change/major Major Changes in this PR label Aug 2, 2023
shannonwells pushed a commit that referenced this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change/major Major Changes in this PR metadata-changed Metadata has changed since the latest full release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[user handles] handle swapping
4 participants