-
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
refactor: use sdk modules #1357
Conversation
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.
Looking like the right direction. A few comments to start. Maybe we can pair on this.
this is now R4R! @regen-network/ledger-core-dev |
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 (basic manual tests starting a new local chain and creating a class, project, batch, and data resolver). Just a couple nits but otherwise looks good to me. Nice work!
// we append the mock module below in order to bypass the check for validator updates. | ||
// since we are testing with a fixture with no validators, we must inject a mock module and | ||
// force it to inject a validator update. | ||
ff.modules = append(ff.modules, MockModule{}) |
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.
👍
Co-authored-by: Ryan Christoffersen <[email protected]>
…-network/regen-ledger into ty/933-app_module_refactor
|
||
// WeightedOperations returns all the ecocredit module operations with their respective weights. | ||
// NOTE: This is no longer needed for the modules which uses ADR-33, ecocredit module `WeightedOperations` | ||
// registered in the `x/ecocredit/server` package. | ||
func (Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { | ||
return nil | ||
func (a Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { |
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.
can you also update godoc?
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.
90d3602 👍🏻
x/data/module/module.go
Outdated
func (Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { | ||
return nil | ||
func (a Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { | ||
return a.keeper.WeightedOperations(simState) |
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 can directly call simulation.WeightedOperations
.
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.
2306d18 👍🏻
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. Nice work 🚀
Description
setCustom<Attribute>
calls fromRegenApp
cosmossdk.io/math
package instead of the deprecatedtypes.Math
Closes: #933
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