diff --git a/app/app.go b/app/app.go index a1a8c37a..7e8f26fb 100644 --- a/app/app.go +++ b/app/app.go @@ -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 { diff --git a/app/keepers/keeper.go b/app/keepers/keeper.go index 8020583c..0423d9b6 100644 --- a/app/keepers/keeper.go +++ b/app/keepers/keeper.go @@ -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" @@ -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) diff --git a/go.mod b/go.mod index cd6ad570..e3b11363 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 0688fafe..45e4da07 100644 --- a/go.sum +++ b/go.sum @@ -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=