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: Allow asset participation in gov #131

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

phamminh0811
Copy link
Contributor

Closes: #50

What is the purpose of the change

  • Implement a new gov module in custom folder
  • Change tally function so that all alliance assets can not vote in gov
  • Make the previous test cases successfully built

Copy link
Contributor

@emidev98 emidev98 left a comment

Choose a reason for hiding this comment

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

Hello @phamminh0811, thanks for submitting the PR! Sorry for the review delay. Overall the PR looks good I left few comments for you to review.

One more comment, regarding the routes for governance are not working, can you double check that please?

http://0.0.0.0:1317/cosmos/gov/v1beta1/proposals

image

http://0.0.0.0:1317/cosmos/gov/v1/proposals

image

allianced tx gov submit-legacy-proposal create-alliance ulunax 0.5 0 0.00005 1s --from=alice
image

Feel free to review the comments. I'll be subscribed to the PR so I can improve the reviewing times. Thanks again!

return keeper
}

func (k *Keeper) RegisterKeepers(ak alliancekeeper.Keeper, bk custombankkeeper.Keeper, sk stakingkeeper.Keeper) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like the custom keepers are never registered in the app.go. Should be a similar case to the custom bank keeper (https://github.com/terra-money/alliance/blob/main/app/app.go#L431)

Comment on lines +1 to +7
package types

import sdk "github.com/cosmos/cosmos-sdk/types"

type StakingKeeper interface {
BondDenom(ctx sdk.Context) (res string)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like the keeper interface is not being used because you're using the default CosmosSDK keeper. Should it be deleted?

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.

Allow asset participation in governance to be configurable
3 participants