-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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(simapp): remove public module basic manager #15958
Changes from 5 commits
9f555aa
24ab464
78835a8
10f2217
e033c7f
86b0855
b045e6d
bfe737c
5b113cb
ccdec7f
65d6691
d8f465d
dad695d
3432b32
a18b226
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ package simapp | |
import ( | ||
"time" | ||
|
||
"google.golang.org/protobuf/types/known/durationpb" | ||
|
||
runtimev1alpha1 "cosmossdk.io/api/cosmos/app/runtime/v1alpha1" | ||
appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1" | ||
authmodulev1 "cosmossdk.io/api/cosmos/auth/module/v1" | ||
|
@@ -24,14 +26,31 @@ import ( | |
txconfigv1 "cosmossdk.io/api/cosmos/tx/config/v1" | ||
upgrademodulev1 "cosmossdk.io/api/cosmos/upgrade/module/v1" | ||
vestingmodulev1 "cosmossdk.io/api/cosmos/vesting/module/v1" | ||
|
||
_ "cosmossdk.io/x/evidence" // import for side-effects | ||
_ "cosmossdk.io/x/feegrant/module" // import for side-effects | ||
_ "cosmossdk.io/x/nft/module" // import for side-effects | ||
_ "cosmossdk.io/x/upgrade" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/auth/vesting" // import for side-effects | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is so hood. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, because we do not import the module directl now that there is no app basic imports, we need these for app wiring. |
||
_ "github.com/cosmos/cosmos-sdk/x/authz/module" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/consensus" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/crisis" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/distribution" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/genutil" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/gov" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/group/module" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/mint" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/params" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/slashing" // import for side-effects | ||
_ "github.com/cosmos/cosmos-sdk/x/staking" // import for side-effects | ||
|
||
"cosmossdk.io/core/appconfig" | ||
evidencetypes "cosmossdk.io/x/evidence/types" | ||
"cosmossdk.io/x/feegrant" | ||
"cosmossdk.io/x/nft" | ||
upgradetypes "cosmossdk.io/x/upgrade/types" | ||
"google.golang.org/protobuf/types/known/durationpb" | ||
|
||
"cosmossdk.io/x/feegrant" | ||
|
||
"github.com/cosmos/cosmos-sdk/runtime" | ||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" | ||
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" | ||
|
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.
Why does this need to be exported?
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 did that for parity with app v1, I won't do that anymore given I will create a second root.go for app v2 only 👍🏾