2018-10-10 13:01:30 -07:00
|
|
|
package subspace
|
2018-09-17 08:28:13 -07:00
|
|
|
|
2018-10-10 13:01:30 -07:00
|
|
|
// Used for associating paramsubspace key and field of param structs
|
2019-02-04 18:13:04 -08:00
|
|
|
type ParamSetPair struct {
|
2018-09-27 11:52:29 -07:00
|
|
|
Key []byte
|
2018-10-06 08:32:41 -07:00
|
|
|
Value interface{}
|
2018-09-17 08:28:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Slice of KeyFieldPair
|
2019-02-04 18:13:04 -08:00
|
|
|
type ParamSetPairs []ParamSetPair
|
2018-09-17 08:28:13 -07:00
|
|
|
|
|
|
|
// Interface for structs containing parameters for a module
|
2018-10-10 13:01:30 -07:00
|
|
|
type ParamSet interface {
|
2019-02-04 18:13:04 -08:00
|
|
|
ParamSetPairs() ParamSetPairs
|
2018-09-17 08:28:13 -07:00
|
|
|
}
|