From 3aafb9bb0a0e999d5ae8803444bfb7940ec5f32b Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Thu, 10 Nov 2022 22:30:43 +0000 Subject: [PATCH] feat: add experimental flag to oracle msg server (#1572) * feat: add experimental flag to oracle msg server * remove experimetnal from oracle msgserver * remove msgServer.experimental --- app/app.go | 2 +- x/oracle/module.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index cf2cc78e16..9ac14b4d42 100644 --- a/app/app.go +++ b/app/app.go @@ -598,7 +598,7 @@ func New( ibcTransferModule, gravity.NewAppModule(app.GravityKeeper, app.BankKeeper), leverage.NewAppModule(appCodec, app.LeverageKeeper, app.AccountKeeper, app.BankKeeper), - oracle.NewAppModule(appCodec, app.OracleKeeper, app.AccountKeeper, app.BankKeeper), + oracle.NewAppModule(appCodec, app.OracleKeeper, app.AccountKeeper, app.BankKeeper, Experimental), bech32ibc.NewAppModule(appCodec, app.bech32IbcKeeper), } if Experimental { diff --git a/x/oracle/module.go b/x/oracle/module.go index 5f73bcd7f4..4e84e26f46 100644 --- a/x/oracle/module.go +++ b/x/oracle/module.go @@ -107,6 +107,7 @@ type AppModule struct { keeper keeper.Keeper accountKeeper types.AccountKeeper bankKeeper bankkeeper.Keeper + experimental bool } func NewAppModule( @@ -114,12 +115,14 @@ func NewAppModule( keeper keeper.Keeper, accountKeeper types.AccountKeeper, bankKeeper bankkeeper.Keeper, + experimental bool, ) AppModule { return AppModule{ AppModuleBasic: NewAppModuleBasic(cdc), keeper: keeper, accountKeeper: accountKeeper, bankKeeper: bankKeeper, + experimental: experimental, } }