Merge PR #4717: update x/slashing to match module spec
This commit is contained in:
committed by
Alexander Bezobchuk
parent
72ce6df7b6
commit
52edb032ca
@@ -25,6 +25,7 @@ const (
|
||||
|
||||
var (
|
||||
// functions aliases
|
||||
NewParamSetPair = subspace.NewParamSetPair
|
||||
NewSubspace = subspace.NewSubspace
|
||||
NewKeyTable = subspace.NewKeyTable
|
||||
DefaultTestComponents = subspace.DefaultTestComponents
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
package subspace
|
||||
|
||||
// Used for associating paramsubspace key and field of param structs
|
||||
// ParamSetPair is used for associating paramsubspace key and field of param structs
|
||||
type ParamSetPair struct {
|
||||
Key []byte
|
||||
Value interface{}
|
||||
}
|
||||
|
||||
// Slice of KeyFieldPair
|
||||
// NewParamSetPair creates a new ParamSetPair instance
|
||||
func NewParamSetPair(key []byte, value interface{}) ParamSetPair {
|
||||
return ParamSetPair{key, value}
|
||||
}
|
||||
|
||||
// ParamSetPairs Slice of KeyFieldPair
|
||||
type ParamSetPairs []ParamSetPair
|
||||
|
||||
// Interface for structs containing parameters for a module
|
||||
// ParamSet defines an interface for structs containing parameters for a module
|
||||
type ParamSet interface {
|
||||
ParamSetPairs() ParamSetPairs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user