2018-09-18 04:16:20 -07:00
|
|
|
package store
|
2018-09-17 08:28:13 -07:00
|
|
|
|
|
|
|
// Used for associating paramstore key and field of param structs
|
|
|
|
type KeyFieldPair struct {
|
2018-09-27 11:52:29 -07:00
|
|
|
Key []byte
|
2018-09-17 08:28:13 -07:00
|
|
|
Field interface{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Slice of KeyFieldPair
|
2018-10-06 06:50:58 -07:00
|
|
|
type KeyValuePairs []KeyFieldPair
|
2018-09-17 08:28:13 -07:00
|
|
|
|
|
|
|
// Interface for structs containing parameters for a module
|
|
|
|
type ParamStruct interface {
|
2018-10-06 06:50:58 -07:00
|
|
|
KeyValuePairs() KeyValuePairs
|
2018-09-17 08:28:13 -07:00
|
|
|
}
|