Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Oct 17, 2024
1 parent fea1cda commit 42730a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,8 @@ func NewOnomyApp( // nolint:funlen // app new cosmos func
app.mm.SetOrderEndBlockers(orderEndBlockers()...)
app.mm.SetOrderInitGenesis(orderInitBlockers()...)

//
app.mm.RegisterInvariants(app.CrisisKeeper)
app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter())
// for a, _ := range app.mm.Modules {
// fmt.Println(a)
// }

err = app.mm.RegisterServices(app.configurator)
if err != nil {
Expand Down
4 changes: 3 additions & 1 deletion app/keepers/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import (
oracleKeeper "github.com/onomyprotocol/reserve/x/oracle/keeper"
psmKeeper "github.com/onomyprotocol/reserve/x/psm/keeper"
vaultsKeeper "github.com/onomyprotocol/reserve/x/vaults/keeper"
vaults "github.com/onomyprotocol/reserve/x/vaults/module"

auctiontypes "github.com/onomyprotocol/reserve/x/auction/types"
oracletypes "github.com/onomyprotocol/reserve/x/oracle/types"
Expand Down Expand Up @@ -325,7 +326,8 @@ func NewAppKeeper(
AddRoute(daotypes.RouterKey, dao.NewProposalHandler(appKeepers.DaoKeeper)).
AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(appKeepers.IBCKeeper.ClientKeeper)).
AddRoute(psmtypes.RouterKey, psm.NewPSMProposalHandler(&appKeepers.PSMKeeper)).
AddRoute(oracletypes.RouterKey, oracle.NewOracleProposalHandler(appKeepers.OracleMockKeeper))
AddRoute(oracletypes.RouterKey, oracle.NewOracleProposalHandler(appKeepers.OracleMockKeeper)).
AddRoute(vaultstypes.RouterKey, vaults.NewVaultsProposalHandler(&appKeepers.VaultsKeeper))

// Set legacy router for backwards compatibility with gov v1beta1.
appKeepers.GovKeeper.SetLegacyRouter(govRouter)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/golang/protobuf v1.5.4
github.com/gorilla/mux v1.8.1 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/onomyprotocol/reserve v0.0.0-demo.9
github.com/onomyprotocol/reserve v0.0.0-demo.10
github.com/spf13/cast v1.6.0
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ
github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA=
github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU=
github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
github.com/onomyprotocol/reserve v0.0.0-demo.9 h1:bgtzU/yPkd3fK+1RlYhnRHN4W3inut3d49JGg186cxw=
github.com/onomyprotocol/reserve v0.0.0-demo.9/go.mod h1:xSaz6quV4tiuM/n+j+Ad1usfWZZHZXBMPQbFQw1UlIs=
github.com/onomyprotocol/reserve v0.0.0-demo.10 h1:NcYo5W5YcqRbKnU+JbHMuI54+myyfcE8Z4+dbFfQAvc=
github.com/onomyprotocol/reserve v0.0.0-demo.10/go.mod h1:xSaz6quV4tiuM/n+j+Ad1usfWZZHZXBMPQbFQw1UlIs=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
Expand Down

0 comments on commit 42730a6

Please sign in to comment.