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

refactor(campaign): remove MsgAddVestingOptions #827

Merged
merged 13 commits into from
Jun 10, 2022

Conversation

aljo242
Copy link

@aljo242 aljo242 commented Jun 1, 2022

Closes #818

@aljo242 aljo242 changed the title delete files refactor(campaign): remove MsgAddVestingOptions Jun 1, 2022
@aljo242 aljo242 force-pushed the refactor/remove-add-vesting-options branch from e0c1f0c to 3c9a31d Compare June 1, 2022 13:06
@codecov
Copy link

codecov bot commented Jun 1, 2022

Codecov Report

Merging #827 (5e3e0c9) into develop (7833ecf) will increase coverage by 0.03%.
The diff coverage is 6.93%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #827      +/-   ##
===========================================
+ Coverage    10.32%   10.35%   +0.03%     
===========================================
  Files          328      322       -6     
  Lines        77189    75344    -1845     
===========================================
- Hits          7968     7802     -166     
+ Misses       69028    67355    -1673     
+ Partials       193      187       -6     
Impacted Files Coverage Δ
x/campaign/genesis.go 100.00% <ø> (ø)
x/campaign/simulation/simulation.go 0.00% <ø> (ø)
x/campaign/types/events.pb.go 0.54% <ø> (ø)
x/campaign/types/genesis.pb.go 1.58% <0.00%> (+0.16%) ⬆️
x/campaign/types/query.pb.go 0.64% <0.00%> (+0.01%) ⬆️
x/campaign/types/query.pb.gw.go 0.00% <ø> (ø)
x/campaign/types/tx.pb.go 0.58% <0.00%> (+<0.01%) ⬆️
x/campaign/types/vesting.pb.go 2.44% <2.56%> (ø)
x/campaign/types/genesis.go 100.00% <100.00%> (ø)
x/campaign/simulation/store.go 81.08% <0.00%> (-2.03%) ⬇️
... and 1 more

Copy link
Contributor

@lumtis lumtis left a comment

Choose a reason for hiding this comment

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

We can also remove the commented block in x/campaign/handler.go

And we can remove everything related to MainnetVestingAccount
mainnet_vesting_account.proto
cli/query_mainnet_vesting_account.go
keeper/grpc_mainnet_vesting_account.go
keeper/mainnet_vesting_account.go
types/mainnet_vesting_account.go

In the future, if we introduce vouchers for vesting options, this part would be refactored heavily. Therefore, I think it's more beneficial to remove this now

@aljo242
Copy link
Author

aljo242 commented Jun 1, 2022

We can also remove the commented block in x/campaign/handler.go

And we can remove everything related to MainnetVestingAccount mainnet_vesting_account.proto cli/query_mainnet_vesting_account.go keeper/grpc_mainnet_vesting_account.go keeper/mainnet_vesting_account.go types/mainnet_vesting_account.go

In the future, if we introduce vouchers for vesting options, this part would be refactored heavily. Therefore, I think it's more beneficial to remove this now

The build will now fail because ignite-cli imports and uses the MainnetVestingAccount type from our code. We will need to make a PR on their end to remove this.

@lumtis
Copy link
Contributor

lumtis commented Jun 1, 2022

Indeed, I didn't know we used mainnet vesting account in the CLI but we can remove every occurrence of it

@lumtis
Copy link
Contributor

lumtis commented Jun 2, 2022

@aljo242 I created a PR for remove mainnet vesting account from cli ignite/cli#2549

However, in this PR there is still reference to mainnet vesting accounts in
x/campaign/genesis_test.go
x/campaign/keeper/invariants_test.go

@aljo242
Copy link
Author

aljo242 commented Jun 8, 2022

Code is all merged - just waiting on changes to be made in Ignite CLI

Pantani
Pantani previously approved these changes Jun 8, 2022
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
"testing"
Copy link
Collaborator

Choose a reason for hiding this comment

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

wrong import sort. You should run make format

@lumtis
Copy link
Contributor

lumtis commented Jun 9, 2022

@Pantani I'm waiting for ignite/cli#2566 being merged to complete ignite/cli#2549

Is there anything blocking for ignite/cli#2566?

@Pantani
Copy link
Collaborator

Pantani commented Jun 9, 2022

@Pantani I'm waiting for ignite-hq/cli#2566 being merged to complete ignite-hq/cli#2549

Is there anything blocking for ignite-hq/cli#2566?

yes, I found some issues, but now the cosmogen is not generating the mint module for the vuex, I'm trying to find the issue

@Pantani
Copy link
Collaborator

Pantani commented Jun 9, 2022

@Pantani I'm waiting for ignite-hq/cli#2566 being merged to complete ignite-hq/cli#2549

Is there anything blocking for ignite-hq/cli#2566?

merged

@lumtis
Copy link
Contributor

lumtis commented Jun 10, 2022

@aljo242 just pushed a fix for invariant test that was still taking Vesting Options into consideration

@lumtis lumtis merged commit 44b136f into develop Jun 10, 2022
@lumtis lumtis deleted the refactor/remove-add-vesting-options branch June 10, 2022 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove entirely MsgAddVestingOptions
3 participants