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

fix: fix the compatibility issues with daphne #539

Merged
merged 59 commits into from
Jun 30, 2022
Merged

Conversation

0Tech
Copy link
Collaborator

@0Tech 0Tech commented May 12, 2022

Description

ref: #412

Motivation and context

The module was not compatible with the legacy one, and we concluded to maintain the most part of the interface.

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 self-assigned this May 12, 2022
proto/lbm/token/v1/query.proto Show resolved Hide resolved
proto/lbm/token/v1/query.proto Outdated Show resolved Hide resolved
proto/lbm/token/v1/query.proto Outdated Show resolved Hide resolved
proto/lbm/token/v1/query.proto Show resolved Hide resolved
proto/lbm/token/v1/tx.proto Outdated Show resolved Hide resolved
proto/lbm/token/v1/tx.proto Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@0Tech 0Tech left a comment

Choose a reason for hiding this comment

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

Thank you for your review @ryu1-sakai, I've added my replies.
After pushing my works, I will apply your opinion.

proto/lbm/token/v1/query.proto Show resolved Hide resolved
proto/lbm/token/v1/query.proto Show resolved Hide resolved
proto/lbm/token/v1/query.proto Outdated Show resolved Hide resolved
proto/lbm/token/v1/query.proto Outdated Show resolved Hide resolved
proto/lbm/token/v1/tx.proto Outdated Show resolved Hide resolved
proto/lbm/token/v1/tx.proto Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 24, 2022

Codecov Report

Merging #539 (cc76ba5) into main (6157f09) will increase coverage by 0.09%.
The diff coverage is 63.91%.

❗ Current head cc76ba5 differs from pull request most recent head 1fb1c07. Consider uploading reports for the commit 1fb1c07 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #539      +/-   ##
==========================================
+ Coverage   57.59%   57.69%   +0.09%     
==========================================
  Files         793      793              
  Lines       86584    87013     +429     
==========================================
+ Hits        49866    50198     +332     
- Misses      33558    33658     +100     
+ Partials     3160     3157       -3     
Impacted Files Coverage Δ
client/grpc/tmservice/query.pb.go 29.07% <ø> (ø)
codec/types/interface_registry.go 53.96% <ø> (ø)
types/codec.go 60.00% <ø> (ø)
x/auth/legacy/v043/store.go 58.29% <ø> (ø)
x/evidence/types/codec.go 47.05% <0.00%> (ø)
x/gov/types/codec.go 38.46% <0.00%> (ø)
x/staking/client/rest/query.go 45.79% <ø> (ø)
x/token/client/testutil/query.go 100.00% <ø> (ø)
x/token/client/testutil/suite.go 100.00% <ø> (ø)
x/token/client/testutil/tx.go 100.00% <ø> (ø)
... and 41 more

Copy link
Contributor

@ryu1-sakai ryu1-sakai left a comment

Choose a reason for hiding this comment

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

@0Tech, I wrote two questions and one comment about event.proto.

proto/lbm/token/v1/event.proto Show resolved Hide resolved
proto/lbm/token/v1/event.proto Show resolved Hide resolved
}

// Authorization queries authorization on a given operator holder pair.
// if no authorization found for the request, it would return an error.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you write the comment to explain what kind of error clients will receive when no authorization is found?
Client need to distinguish such a not-found error from other kind of errors.

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 updated the comment.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you, I confirmed the comments! 👍

x/token/client/testutil/suite.go Outdated Show resolved Hide resolved
x/token/keeper/supply_test.go Outdated Show resolved Hide resolved
x/token/keeper/send.go Outdated Show resolved Hide resolved
x/token/keeper/msg_server_test.go Show resolved Hide resolved
@0Tech 0Tech requested a review from dudong2 June 30, 2022 02:23
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 41bd395 into Finschia:main Jun 30, 2022
@0Tech 0Tech deleted the token branch June 30, 2022 05:00
tnasu pushed a commit to tnasu/finschia-sdk that referenced this pull request Jul 19, 2022
* Charge gas for custom event attributes

* Introduce gas register for gas costs

* Review feedback

* Tests and minor updates

* Godoc
@zemyblue zemyblue mentioned this pull request Oct 27, 2022
5 tasks
@zemyblue zemyblue mentioned this pull request Nov 28, 2022
5 tasks
@0Tech 0Tech added the A: bug Something isn't working label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: bug Something isn't working C:x/token
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants