Skip to content

feat: implement incentive msg interface#1653

Merged
toteki merged 5 commits intomainfrom
adam/msg
Dec 13, 2022
Merged

feat: implement incentive msg interface#1653
toteki merged 5 commits intomainfrom
adam/msg

Conversation

@toteki
Copy link
Copy Markdown
Contributor

@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
Copy Markdown

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
Copy Markdown
Contributor 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

Copy link
Copy Markdown
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
Copy Markdown
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