Skip to content

Commit

Permalink
Removed usnued codes
Browse files Browse the repository at this point in the history
  • Loading branch information
shawayush committed Oct 13, 2022
1 parent 8e0fd1e commit 97e090d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
13 changes: 1 addition & 12 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ func New(
ibctransfertypes.StoreKey,
capabilitytypes.StoreKey,
// this line is used by starport scaffolding # stargate/app/storeKey
//oracletypes.StoreKey,
authzkeeper.StoreKey,
feegrant.StoreKey,
wasm.StoreKey,
Expand Down Expand Up @@ -263,6 +262,7 @@ func New(
)
app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app)
app.registerUpgradeHandlers()

// register the staking hooks
// NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks
app.StakingKeeper = *stakingKeeper.SetHooks(
Expand Down Expand Up @@ -308,16 +308,6 @@ func New(
// If evidence needs to be handled for the app, set routes in router here and seal
app.EvidenceKeeper = *evidenceKeeper

// TODO : Get Business logic fromm company

//app.OracleKeeper = *oraclekeeper.NewKeeper(
// appCodec,
// keys[oracletypes.StoreKey],
// keys[oracletypes.MemStoreKey],
// app.GetSubspace(oracletypes.ModuleName),
//)
//oracleModule := oracle.NewAppModule(appCodec, app.OracleKeeper)

// this line is used by starport scaffolding # stargate/app/keeperDefinition
wasmDir := filepath.Join(homePath, "wasm")
wasmConfig, err := wasm.ReadWasmConfig(appOpts)
Expand Down Expand Up @@ -398,7 +388,6 @@ func New(
authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
feegrantmodule.NewAppModule(appCodec, app.AccountKeeper, app.BankKeeper, app.FeeGrantKeeper, app.interfaceRegistry),
// this line is used by starport scaffolding # stargate/app/appModule
//oracleModule,
transferModule,
wasm.NewAppModule(appCodec, &app.wasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper),
)
Expand Down
5 changes: 1 addition & 4 deletions app/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,13 @@ type App struct {
SimulKepper smltn.BankKeeper
AuthzKeeper authzkeeper.Keeper
FeeGrantKeeper feegrantkeeper.Keeper
//scopedKeeper capabilitykeeper.ScopedKeeper
ics4Wrapper ibctransfertypes.ICS4Wrapper
ics4Wrapper ibctransfertypes.ICS4Wrapper

// make scoped keepers public for test purposes
ScopedIBCKeeper capabilitykeeper.ScopedKeeper
ScopedTransferKeeper capabilitykeeper.ScopedKeeper

// this line is used by starport scaffolding # stargate/app/keeperDeclaration

//OracleKeeper oraclekeeper.Keeper
wasmKeeper wasm.Keeper
scopedWasmKeeper capabilitykeeper.ScopedKeeper

Expand Down
1 change: 0 additions & 1 deletion app/var.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ var (
authz.AppModuleBasic{},
feegrantmodule.AppModuleBasic{},
// this line is used by starport scaffolding # stargate/app/moduleBasic
//oracle.AppModuleBasic{},
wasm.AppModuleBasic{},
)

Expand Down

0 comments on commit 97e090d

Please sign in to comment.