Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion x/rewards/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

_ appmodule.AppModule = AppModule{}
_ appmodule.HasBeginBlocker = AppModule{}
_ module.HasInvariants = AppModule{}
)

// ConsensusVersion defines the current x/rewards module consensus version.
Expand Down Expand Up @@ -124,7 +125,7 @@
bankKeeper types.BankKeeper,
) AppModule {
return AppModule{
AppModuleBasic: NewAppModuleBasic(), // Does this need something else?
AppModuleBasic: NewAppModuleBasic(),
keeper: keeper,
bankKeeper: bankKeeper,
}
Expand All @@ -145,6 +146,13 @@
types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQuerier(am.keeper))
}

// RegisterInvariants registers the rewards module invariants with the
// invariant registry. This wires up the keeper-level accounting check so
// it runs during simulation and crisis-module sweeps.
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {
keeper.RegisterInvariants(ir, am.keeper)

Check failure on line 153 in x/rewards/module.go

View workflow job for this annotation

GitHub Actions / liveness-test

undefined: keeper.RegisterInvariants

Check failure on line 153 in x/rewards/module.go

View workflow job for this annotation

GitHub Actions / test-e2e

undefined: keeper.RegisterInvariants

Check failure on line 153 in x/rewards/module.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: keeper.RegisterInvariants (typecheck)

Check failure on line 153 in x/rewards/module.go

View workflow job for this annotation

GitHub Actions / tests

undefined: keeper.RegisterInvariants

Check failure on line 153 in x/rewards/module.go

View workflow job for this annotation

GitHub Actions / tests

undefined: keeper.RegisterInvariants
}

// InitGenesis performs the x/rewards module's genesis initialization. It
// returns no validator updates.
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) []abci.ValidatorUpdate {
Expand Down
Loading