github.com/Finschia/finschia-sdk@v0.48.1/x/params/spec/01_keeper.md (about) 1 <!-- 2 order: 1 3 --> 4 5 # Keeper 6 7 In the app initialization stage, [subspaces](02_subspace.md) can be allocated for other modules' keeper using `Keeper.Subspace` and are stored in `Keeper.spaces`. Then, those modules can have a reference to their specific parameter store through `Keeper.GetSubspace`. 8 9 Example: 10 11 ```go 12 type ExampleKeeper struct { 13 paramSpace paramtypes.Subspace 14 } 15 16 func (k ExampleKeeper) SetParams(ctx sdk.Context, params types.Params) { 17 k.paramSpace.SetParamSet(ctx, ¶ms) 18 } 19 ```