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: implement incentive msg interface #1653

Merged
merged 5 commits into from
Dec 13, 2022
Merged

feat: implement incentive msg interface #1653

merged 5 commits into from
Dec 13, 2022

Conversation

toteki
Copy link
Member

@toteki toteki commented Dec 9, 2022

Description

This implements Msg interface for the incentive message types and also takes care of some supporting details (codec, errors, etc)

It also moves validateProposal used in leverage to util/checkers, then reuses it for incentive proposals.

Some make proto-all effects are also included (oracle formatting / swagger)

@codecov-commenter
Copy link

codecov-commenter commented Dec 9, 2022

Codecov Report

Merging #1653 (5a274b8) into main (7a9f656) will increase coverage by 0.13%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1653      +/-   ##
==========================================
+ Coverage   55.15%   55.29%   +0.13%     
==========================================
  Files          73       73              
  Lines        7522     7503      -19     
==========================================
  Hits         4149     4149              
+ Misses       3053     3034      -19     
  Partials      320      320              
Impacted Files Coverage Δ
x/leverage/types/keys.go 100.00% <ø> (ø)
x/leverage/types/msgs.go 9.09% <0.00%> (+2.74%) ⬆️

@toteki toteki marked this pull request as ready for review December 9, 2022 15:47
@toteki toteki requested a review from a team as a code owner December 9, 2022 15:47
Copy link
Member Author

@toteki toteki left a comment

Choose a reason for hiding this comment

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

Added notes

proto/umee/oracle/v1/genesis.proto Outdated Show resolved Hide resolved
swagger/swagger.yaml Show resolved Hide resolved
util/checkers/proposal.go Show resolved Hide resolved
x/incentive/params.go Show resolved Hide resolved
Copy link
Collaborator

@gsk967 gsk967 left a comment

Choose a reason for hiding this comment

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

Can you implement Route and Type methods for all messages , For Ledger support we need to implement this two methods

// Route implements the sdk.Msg interface.
func (m MsgType) Route() string { return types.RouterKey }

// Type implements the sdk.Msg interface.
func (m MsgType) Type() string { return sdk.MsgTypeURL(&m) }

@toteki toteki requested a review from a team as a code owner December 12, 2022 17:59
Copy link
Collaborator

@gsk967 gsk967 left a comment

Choose a reason for hiding this comment

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

LGTM

@toteki toteki merged commit 51982f3 into main Dec 13, 2022
@toteki toteki deleted the adam/msg branch December 13, 2022 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants