cosmos-sdk/x/params/subspace/doc.go

15 lines
553 B
Go
Raw Normal View History

package subspace
2018-09-10 04:59:05 -07:00
/*
2018-09-26 08:36:26 -07:00
To prevent namespace collision between consumer modules, we define type
2018-09-10 04:59:05 -07:00
"space". A Space can only be generated by the keeper, and the keeper checks
the existence of the space having the same name before generating the
space.
2018-09-26 08:36:26 -07:00
Consumer modules must take a space (via Keeper.Subspace), not the keeper
itself. This isolates each modules from the others and make them modify the
parameters safely. Keeper can be treated as master permission for all
subspaces (via Keeper.GetSubspace), so should be passed to proper modules
2018-09-10 04:59:05 -07:00
(ex. gov)
*/