-
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)!: add ecocredit projects msg & query server implementations #647
Conversation
Codecov Report
@@ Coverage Diff @@
## master #647 +/- ##
==========================================
- Coverage 74.39% 73.91% -0.48%
==========================================
Files 109 110 +1
Lines 16539 17064 +525
==========================================
+ Hits 12304 12613 +309
- Misses 3404 3578 +174
- Partials 831 873 +42
Flags with carried forward coverage won't be shown. Click here to find out more. |
lgtm, just pending - #647 (comment) |
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.
Unblocking, but I would like to see:
- better organization and reuse of validation functions
- Remove legacy Msg methods (Route, Type, GetSignBytes) - they are not needed. Let's make the code less boilerplate.
- decide about https://github.com/regen-network/regen-ledger/pull/647/files#r761416527 (@clevinson )
@@ -549,3 +548,140 @@ func (m *MsgAllowAskDenom) GetSigners() []sdk.AccAddress { | |||
addr, _ := sdk.AccAddressFromBech32(m.RootAddress) | |||
return []sdk.AccAddress{addr} | |||
} | |||
|
|||
// Route implements the LegacyMsg interface. | |||
func (m MsgCreateProject) Route() string { return sdk.MsgTypeURL(&m) } |
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.
I think we don't need to implement it. Let's remove. Same for Type.
BatchDenom: string(batchDenom), | ||
Issuer: req.Issuer, | ||
TotalAmount: totalSupplyStr, | ||
StartDate: req.StartDate.Format("2006-01-02"), | ||
EndDate: req.EndDate.Format("2006-01-02"), | ||
ProjectLocation: req.ProjectLocation, | ||
ProjectLocation: projectInfo.ProjectLocation, |
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.
ping
If we remove legacy Msg methods, Ledger users won't be able to sign txns #469. |
Robert said he was unblocking - so dismissing
should we add a test for the project ID generator ? |
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.
LGTM just some final nits
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
Description
Closes: #646
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