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: add EventOwnerChanged and EventRootChanged #604

Merged
merged 4 commits into from
Jul 26, 2022

Conversation

0Tech
Copy link
Collaborator

@0Tech 0Tech commented Jul 21, 2022

Description

Add EventOwnerChanged and EventRootChanged.

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

@0Tech 0Tech added A: improvement Changes in existing functionality C:x/collection labels Jul 21, 2022
@0Tech 0Tech self-assigned this Jul 21, 2022
@0Tech 0Tech requested review from dudong2 and zemyblue July 21, 2022 10:39
@0Tech 0Tech marked this pull request as ready for review July 21, 2022 10:39
@codecov
Copy link

codecov bot commented Jul 21, 2022

Codecov Report

Merging #604 (d3d21cc) into main (253d07e) will increase coverage by 0.04%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #604      +/-   ##
==========================================
+ Coverage   59.42%   59.46%   +0.04%     
==========================================
  Files         814      814              
  Lines       95390    95408      +18     
==========================================
+ Hits        56685    56735      +50     
+ Misses      35168    35086      -82     
- Partials     3537     3587      +50     
Impacted Files Coverage Δ
x/collection/keeper/nft.go 89.18% <77.77%> (-1.47%) ⬇️
x/collection/keeper/send.go 91.08% <81.81%> (-1.39%) ⬇️
x/collection/event.go 100.00% <100.00%> (ø)
x/collection/keeper/supply.go 89.09% <100.00%> (+0.05%) ⬆️
x/foundation/msgs.go 37.01% <0.00%> (-9.62%) ⬇️
x/wasm/keeper/keeper.go 85.74% <0.00%> (-0.36%) ⬇️
x/token/validation.go 89.09% <0.00%> (+1.81%) ⬆️
x/collection/msgs.go 40.12% <0.00%> (+5.33%) ⬆️
... and 1 more

Copy link
Member

@zemyblue zemyblue left a comment

Choose a reason for hiding this comment

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

Please check swagger and statik files

// EventOwnerChanged is emitted when the owner of token is changed by operation applied to its ancestor.
//
// Since: 0.46.0 (finschia)
message EventOwnerChanged {
Copy link
Member

Choose a reason for hiding this comment

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

Is there no changed owner information in this event?

Copy link
Collaborator Author

@0Tech 0Tech Jul 22, 2022

Choose a reason for hiding this comment

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

The address of the new owner was not included in the event on Daphne.

Copy link
Member

Choose a reason for hiding this comment

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

If so, can I understand that it was not added for backwards compatibility?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding a new field would not break the compatibility, but there is no reason to add it.

Copy link
Contributor

@dudong2 dudong2 left a comment

Choose a reason for hiding this comment

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

LGTM

@0Tech 0Tech merged commit 8b9e3e5 into Finschia:main Jul 26, 2022
@0Tech 0Tech deleted the collection branch July 26, 2022 05:40
@zemyblue zemyblue mentioned this pull request Oct 27, 2022
5 tasks
@zemyblue zemyblue mentioned this pull request Nov 28, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: improvement Changes in existing functionality C:x/collection
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants