-
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): update basket date criteria via governance #1864
Conversation
s.baseStore, err = baseapi.NewStateStore(s.db) | ||
assert.NilError(t, err) |
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.
Unrelated but noticed that we initialize base store twice in test setup.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1864 +/- ##
==========================================
+ Coverage 73.24% 73.26% +0.01%
==========================================
Files 230 232 +2
Lines 13706 13746 +40
==========================================
+ Hits 10039 10071 +32
- Misses 2934 2941 +7
- Partials 733 734 +1
|
Amount: sdkMath.NewInt(100), | ||
} | ||
s.classID = testClassID | ||
s.creditTypeAbbrev = "C" | ||
s.creditTypePrecision = 6 | ||
s.batchDenom = "C01-001-20200101-20210101-001" | ||
s.basketDenom = "eco.uC.NCT" | ||
s.basketDenom = testBasketDenom |
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.
Unrelated but we were receiving a lint warning for duplication.
Manual Testing: https://hackmd.io/ji82m-zHSKqz3FgxHJkQ6A |
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.
Just read over the code and implementation looks good to me.
Is there expectation that we'll want to make use of this functionality outside of the potential immediate context of NCT? Would be nice to understand that use case to make sure we're handling this in the most appropriate way for any potential long term usage of this functionality.
My assumption is that baskets will in most cases have standards that define them and standards are subject to change. Such changes should require a network-wide governance proposal but not a coordinated software upgrade, i.e. they are separate from software improvements and fixes. Whether this will be used outside the immediate context of NCT is more so a question of whether baskets will be used. If so, I think this will be used again when standards are adjusted. |
(cherry picked from commit ce80e15)
Description
Ref: #1855
This pull request adds
MsgUpdateDateCriteria
as a governance message (i.e. only the gov module account is authorized to execute this message). In order to maintain parity with standards defined and updated outside the protocol, a network-wide governance proposal to update basket date criteria should be possible without requiring a software upgrade.Manual Testing: https://hackmd.io/ji82m-zHSKqz3FgxHJkQ6A
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