-
Notifications
You must be signed in to change notification settings - Fork 103
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(x/ecocredit)!: migrate core params to ORM #1354
Conversation
x/ecocredit/server/core/features/msg_allowed_class_creator.feature
Outdated
Show resolved
Hide resolved
x/ecocredit/server/core/features/msg_remove_class_creator.feature
Outdated
Show resolved
Hide resolved
…into aleem/core-params-migration
…n-network/regen-ledger into aleem/core-params-migration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! This is looking good. The main change I think we should make is adding and removing a single credit class creator rather than a list of credit class creators. Updating this list will not be frequent and each address added or removed warrants its own proposal. It is technically possible to include multiple updates with multiple messages but we don't want to encourage this behavior but rather one address per proposal.
// creation fee. | ||
repeated cosmos.base.v1beta1.Coin fees = 2 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok for now but tagging #1359 for reference.
x/ecocredit/server/core/features/msg_toggle_class_allowlist.feature
Outdated
Show resolved
Hide resolved
x/ecocredit/server/core/features/msg_toggle_class_allowlist.feature
Outdated
Show resolved
Hide resolved
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
…ature Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
…ature Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
…ature Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. A lot to changes here. It would be nice to tackle updates like this in multiple pull requests in the future, maybe one for each new feature (in this case each param). I've added some more questions and suggestions.
// ToggleCreditClassAllowlist is a governance method that toggles the network | ||
// allowlist to on or off. when on, the class creator allowlist is used to | ||
// enforce which addresses may create classes. when off, any address may | ||
// create classes. Since Revision 1 | ||
rpc ToggleCreditClassAllowlist(MsgToggleCreditClassAllowlist) | ||
returns (MsgToggleCreditClassAllowlistResponse); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be ToggleClassCreatorAllowlist
but we may also want to update based on #1387 so this is ok for now to keep things moving and I've added a comment in the issue #1387 (comment).
x/ecocredit/server/core/features/msg_remove_class_creator.feature
Outdated
Show resolved
Hide resolved
x/ecocredit/server/core/features/msg_remove_class_creator.feature
Outdated
Show resolved
Hide resolved
x/ecocredit/server/core/features/msg_remove_class_creator.feature
Outdated
Show resolved
Hide resolved
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
…n-network/regen-ledger into aleem/core-params-migration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK. Very nice work!
return &core.QueryParamsResponse{ | ||
Params: &core.Params{ | ||
AllowedClassCreators: creators, | ||
AllowlistEnabled: allowlistEnabled.Enabled, | ||
CreditClassFee: classFees1, | ||
BasketFee: basketFees1, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. We should add individual queries for these params but also keep this for the time being. We may also want to consider adding the other params here so that this is not misleading, in which case we would need to update the param struct to include the other params but also deprecate it. I'll open a separate issue for tracking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few nits, preapproving
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
…n-network/regen-ledger into aleem/core-params-migration
Description
Closes: #729
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...
!
to the type prefix if API or client breaking changeCHANGELOG.md
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...
!
in the type prefix if API or client breaking change