From ffcfe5c9a8b8c21b1143c0380da35762f3faaee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CDongLieu=E2=80=9D?= Date: Mon, 30 Sep 2024 17:31:40 +0700 Subject: [PATCH] updates --- x/vaults/module/module.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/x/vaults/module/module.go b/x/vaults/module/module.go index 3bf005d..817ec7c 100644 --- a/x/vaults/module/module.go +++ b/x/vaults/module/module.go @@ -17,7 +17,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - // govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" + govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" abci "github.com/cometbft/cometbft/abci/types" @@ -28,10 +28,10 @@ import ( "cosmossdk.io/core/appmodule" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/onomyprotocol/reserve/x/vaults/keeper" + modulev1 "github.com/onomyprotocol/reserve/api/reserve/vaults/module" oraclekeeper "github.com/onomyprotocol/reserve/x/oracle/keeper" + "github.com/onomyprotocol/reserve/x/vaults/keeper" "github.com/onomyprotocol/reserve/x/vaults/types" - modulev1 "github.com/onomyprotocol/reserve/api/reserve/vaults/module" ) const consensusVersion uint64 = 1 @@ -175,9 +175,9 @@ type ModuleInputs struct { type ModuleOutputs struct { depinject.Out - PsmKeeper keeper.Keeper - Module appmodule.AppModule - // GovHandler govv1beta1.HandlerRoute + PsmKeeper keeper.Keeper + Module appmodule.AppModule + GovHandler govv1beta1.HandlerRoute } func ProvideModule(in ModuleInputs) ModuleOutputs { @@ -203,7 +203,7 @@ func ProvideModule(in ModuleInputs) ModuleOutputs { in.BankKeeper, ) - // govHandler := govv1beta1.HandlerRoute{RouteKey: types.RouterKey, Handler: NewStablecoinProposalHandler(&k)} + govHandler := govv1beta1.HandlerRoute{RouteKey: types.RouterKey, Handler: NewVaultsProposalHandler(k)} - return ModuleOutputs{PsmKeeper: *k, Module: m} //GovHandler: govHandler} + return ModuleOutputs{PsmKeeper: *k, Module: m, GovHandler: govHandler} }