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 proto for Clawback Vesting Account #171

Merged
merged 6 commits into from
Apr 6, 2022

Conversation

mattverse
Copy link
Member

Description

Closes: #1092

This PR addresses the proto changes for clawback implementation.

The final form of implementation for Clawback would be somewhere in the middle of Agoric's implementation and Evmos' implementation.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

proto/cosmos/vesting/v1beta1/tx.proto Outdated Show resolved Hide resolved
proto/cosmos/vesting/v1beta1/tx.proto Outdated Show resolved Hide resolved
proto/cosmos/vesting/v1beta1/tx.proto Outdated Show resolved Hide resolved
proto/cosmos/vesting/v1beta1/vesting.proto Outdated Show resolved Hide resolved
@mattverse mattverse changed the title Add proto for Clawback Vesting Account feat: add proto for Clawback Vesting Account Apr 5, 2022
@mattverse
Copy link
Member Author

@alexanderbez Re-requested review since merging this to main with tests failing felt weird.
Added basic types and an empty set of implementations.

message MsgCreateVestingAccountResponse {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: I don't wanna be a stickler here, but can we be consistent and have the response types be defined after the request types?

Copy link
Member Author

Choose a reason for hiding this comment

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

wdym? isn't it as of right now? Do you mean you want to group all the requests? Or it might have been that you've mistaken it with MsgCreateClawbackVestingAccount?

btw, I love stickler: it's what helps us avoid bugs and maintain our code sanity :) please be my guest!

Copy link
Collaborator

Choose a reason for hiding this comment

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

HELL YEAH!!!

@@ -98,3 +98,11 @@ func (s msgServer) CreateVestingAccount(goCtx context.Context, msg *types.MsgCre

return &types.MsgCreateVestingAccountResponse{}, nil
}

func (s msgServer) CreateClawbackVestingAccount(goCtx context.Context, msg *types.MsgCreateClawbackVestingAccount) (*types.MsgCreateClawbackVestingAccountResponse, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

these are just temp stubs right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep, filling these on the next PR!

x/auth/vesting/types/msgs.go Outdated Show resolved Hide resolved
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
@mattverse mattverse merged commit 0d45507 into osmosis-main Apr 6, 2022
@mattverse mattverse deleted the mattverse/clawback branch April 6, 2022 06:53
czarcas7ic pushed a commit that referenced this pull request Oct 4, 2023
* Add proto for Clawback Vesting Account

* Change field to int

* Change field to int64

* add place holder for clawback

* add handler and basic msgs methods

* Update x/auth/vesting/types/msgs.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants