-
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(types): cleanup and organize types package #1451
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1451 +/- ##
==========================================
+ Coverage 78.42% 78.48% +0.05%
==========================================
Files 240 237 -3
Lines 18399 18386 -13
==========================================
Hits 14430 14430
+ Misses 3131 3118 -13
Partials 838 838
|
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. One small nit and a changelog entry 🙏
types/testutil/fixture/fixture.go
Outdated
"github.com/cosmos/cosmos-sdk/baseapp" | ||
sdkmodules "github.com/cosmos/cosmos-sdk/types/module" | ||
"google.golang.org/grpc" |
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.
group imports 🙏
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.
4e1f883 🤝
type ModuleID struct { | ||
ModuleName string | ||
Path []byte | ||
} | ||
|
||
func (m ModuleID) Address() sdk.AccAddress { | ||
return AddressHash(m.ModuleName, m.Path) | ||
} |
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.
Moving this is a breaking change in the types module. We should add a changelog entry.
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.
8967f06 🤝
type InvokerFactory func(callInfo CallInfo) (Invoker, error) | ||
|
||
type CallInfo struct { | ||
Method string | ||
Caller ModuleID | ||
} |
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.
Moving this is a breaking change in the types module. We should add a changelog entry.
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.
8967f06 🤝
Description
testutil
directory, as it is mainly a test utilityFixtureFactory
implementation file fromtestutil.go
toimpl.go
Closes: n/a
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