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: support message based proposals #1372

Merged
merged 10 commits into from
May 9, 2024

Conversation

jaeseung-bae
Copy link
Contributor

@jaeseung-bae jaeseung-bae commented May 9, 2024

Description

closes: #XXXX

Motivation and context

How has this been tested?

Screenshots (if appropriate):

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

Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 42.48366% with 88 lines in your changes are missing coverage. Please review.

Project coverage is 69.50%. Comparing base (68d8468) to head (837cf59).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1372   +/-   ##
=======================================
  Coverage   69.49%   69.50%           
=======================================
  Files         672      668    -4     
  Lines       56159    56149   -10     
=======================================
- Hits        39028    39026    -2     
+ Misses      14864    14856    -8     
  Partials     2267     2267           
Files Coverage Δ
simapp/app.go 80.00% <100.00%> (-0.07%) ⬇️
x/fswap/types/fswap.go 6.45% <ø> (+1.45%) ⬆️
x/fswap/types/codec.go 58.82% <87.50%> (+17.64%) ⬆️
x/fswap/types/genesis.go 28.00% <0.00%> (-8.85%) ⬇️
x/fswap/keeper/msg_server.go 46.87% <0.00%> (-13.13%) ⬇️
x/fswap/types/msgs.go 0.00% <0.00%> (ø)
x/fswap/keeper/keeper.go 51.54% <49.55%> (-2.38%) ⬇️

... and 2 files with indirect coverage changes

proto/lbm/fswap/v1/tx.proto Outdated Show resolved Hide resolved
x/fswap/client/cli/tx.go Outdated Show resolved Hide resolved
x/fswap/client/cli/tx.go Outdated Show resolved Hide resolved
x/fswap/keeper/keeper.go Outdated Show resolved Hide resolved
x/fswap/types/msgs.go Outdated Show resolved Hide resolved
@jaeseung-bae jaeseung-bae added A: improvement Changes in existing functionality backport/v0.49.x labels May 9, 2024
Copy link
Collaborator

@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.

This improvement does not limit itself to be used by x/foundation. Hence it would be better to reflect it into the PR title.

@jaeseung-bae jaeseung-bae changed the title feat: change MakeSwapProposal to foundation proposal feat: can use foundation proposal May 9, 2024
@jaeseung-bae jaeseung-bae changed the title feat: can use foundation proposal feat: support message based proposals May 9, 2024
@jaeseung-bae jaeseung-bae marked this pull request as ready for review May 9, 2024 10:11
@jaeseung-bae jaeseung-bae self-assigned this May 9, 2024
Copy link
Collaborator

@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.

Please add a change log entry.

@jaeseung-bae jaeseung-bae requested review from 0Tech and 170210 May 9, 2024 11:18
@jaeseung-bae jaeseung-bae merged commit 97570b2 into main May 9, 2024
39 of 40 checks passed
@jaeseung-bae jaeseung-bae deleted the feat/change-proposal-type-for-fswap branch May 9, 2024 11:36
mergify bot pushed a commit that referenced this pull request May 9, 2024
* feat: change MakeSwapProposal to foundation proposal

* chore: refactor MsgMakeSwapProposal -> MsgSetSwap

* chore: clean-up

* chore: use original proto stringer interface

* chore: remove unused proto annotations

* chore: allow gov and foundation as authority address

* chore: lint fix

* chore: remove redundant part

* chore: update changelog

(cherry picked from commit 97570b2)

# Conflicts:
#	x/fswap/keeper/proposal.go
jaeseung-bae added a commit that referenced this pull request May 9, 2024
* feat: support message based proposals (#1372)

* feat: change MakeSwapProposal to foundation proposal

* chore: refactor MsgMakeSwapProposal -> MsgSetSwap

* chore: clean-up

* chore: use original proto stringer interface

* chore: remove unused proto annotations

* chore: allow gov and foundation as authority address

* chore: lint fix

* chore: remove redundant part

* chore: update changelog

(cherry picked from commit 97570b2)

# Conflicts:
#	x/fswap/keeper/proposal.go

* chore: fix conflict

---------

Co-authored-by: jaeseung-bae <119839167+jaeseung-bae@users.noreply.github.com>
Co-authored-by: jaeseung.bae <jaeseung.bae@linecorp.com>
Co-authored-by: zemyblue <zemyblue@gmail.com>
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 backport/v0.49.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants