Skip to content

Commit

Permalink
feat: add experimental flag to oracle msg server (#1572)
Browse files Browse the repository at this point in the history
* feat: add experimental flag to oracle msg server

* remove experimetnal from oracle msgserver

* remove msgServer.experimental
  • Loading branch information
robert-zaremba authored Nov 10, 2022
1 parent 56b89e0 commit 3aafb9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions x/oracle/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,22 @@ type AppModule struct {
keeper keeper.Keeper
accountKeeper types.AccountKeeper
bankKeeper bankkeeper.Keeper
experimental bool
}

func NewAppModule(
cdc codec.Codec,
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,
}
}

Expand Down

0 comments on commit 3aafb9b

Please sign in to comment.