refactor(mint)!: migrate state management to collections (#16329)

Co-authored-by: unknown unknown <unknown@unknown>
This commit is contained in:
testinginprod
2023-05-30 09:12:45 +00:00
committed by GitHub
co-authored by unknown unknown
parent d92c57bc73
commit 0e34478eb7
16 changed files with 70 additions and 223 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ func Example() {
// register the message and query servers
authtypes.RegisterMsgServer(integrationApp.MsgServiceRouter(), authkeeper.NewMsgServerImpl(accountKeeper))
minttypes.RegisterMsgServer(integrationApp.MsgServiceRouter(), mintkeeper.NewMsgServerImpl(mintKeeper))
minttypes.RegisterQueryServer(integrationApp.QueryHelper(), mintKeeper)
minttypes.RegisterQueryServer(integrationApp.QueryHelper(), mintkeeper.NewQueryServerImpl(mintKeeper))
params := minttypes.DefaultParams()
params.BlocksPerYear = 10000
@@ -98,7 +98,7 @@ func Example() {
sdkCtx := sdk.UnwrapSDKContext(integrationApp.Context())
// we should also check the state of the application
got, err := mintKeeper.GetParams(sdkCtx)
got, err := mintKeeper.Params.Get(sdkCtx)
if err != nil {
panic(err)
}