Skip to content

Commit 4580f76

Browse files
committed
restructure modules
1 parent 5da60cb commit 4580f76

File tree

5 files changed

+3
-31
lines changed

5 files changed

+3
-31
lines changed

modules/apps/27-interchain-accounts/module.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,6 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
195195
// ConsensusVersion implements AppModule/ConsensusVersion.
196196
func (AppModule) ConsensusVersion() uint64 { return 3 }
197197

198-
// BeginBlock implements the AppModule interface
199-
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
200-
}
201-
202-
// EndBlock implements the AppModule interface
203-
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate {
204-
return []abci.ValidatorUpdate{}
205-
}
206-
207198
// AppModuleSimulation functions
208199

209200
// GenerateGenesisState creates a randomized GenState of the ics27 module.

modules/apps/29-fee/module.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,6 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
117117
// ConsensusVersion implements AppModule/ConsensusVersion.
118118
func (AppModule) ConsensusVersion() uint64 { return 1 }
119119

120-
// BeginBlock implements the AppModule interface
121-
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
122-
}
123-
124-
// EndBlock implements the AppModule interface
125-
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate {
126-
return []abci.ValidatorUpdate{}
127-
}
128-
129120
// AppModuleSimulation functions
130121

131122
// GenerateGenesisState creates a randomized GenState of the 29-fee module.

modules/apps/transfer/module.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,6 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
136136
// ConsensusVersion implements AppModule/ConsensusVersion defining the current version of transfer.
137137
func (AppModule) ConsensusVersion() uint64 { return 4 }
138138

139-
// BeginBlock implements the AppModule interface
140-
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
141-
}
142-
143-
// EndBlock implements the AppModule interface
144-
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate {
145-
return []abci.ValidatorUpdate{}
146-
}
147-
148139
// AppModuleSimulation functions
149140

150141
// GenerateGenesisState creates a randomized GenState of the transfer module.

modules/capability/module.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
)
2727

2828
var (
29-
_ module.BeginBlockAppModule = (*AppModule)(nil)
3029
_ module.AppModuleBasic = (*AppModuleBasic)(nil)
3130
_ module.AppModuleSimulation = (*AppModule)(nil)
3231
_ appmodule.AppModule = (*AppModule)(nil)
@@ -143,7 +142,7 @@ func (AppModule) ConsensusVersion() uint64 { return 1 }
143142
// BeginBlock executes all ABCI BeginBlock logic respective to the capability module.
144143
// BeginBlocker calls InitMemStore to assert that the memory store is initialized.
145144
// It's safe to run multiple times.
146-
func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) {
145+
func (am AppModule) BeginBlock(ctx sdk.Context) {
147146
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)
148147

149148
am.keeper.InitMemStore(ctx)

modules/core/module.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
171171
func (AppModule) ConsensusVersion() uint64 { return 5 }
172172

173173
// BeginBlock returns the begin blocker for the ibc module.
174-
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
174+
func (am AppModule) BeginBlock(ctx sdk.Context) {
175175
ibcclient.BeginBlocker(ctx, am.keeper.ClientKeeper)
176176
}
177177

178178
// EndBlock returns the end blocker for the ibc module. It returns no validator
179179
// updates.
180-
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate {
180+
func (am AppModule) EndBlock(ctx sdk.Context) []abci.ValidatorUpdate {
181181
return []abci.ValidatorUpdate{}
182182
}
183183

0 commit comments

Comments
 (0)