-
Notifications
You must be signed in to change notification settings - Fork 113
/
params.go
32 lines (27 loc) · 999 Bytes
/
params.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package types
import (
params "github.com/cosmos/cosmos-sdk/x/params/types"
)
// KeyTable retrieves a subspace table for the module
func KeyTable() params.KeyTable {
return params.NewKeyTable().RegisterParamSet(&Params{})
}
// DefaultParams creates the default genesis parameters
func DefaultParams() Params {
return Params{}
}
// ParamSetPairs implements the ParamSet interface and returns all the key/value pairs
// pairs of tss module's parameters.
func (m *Params) ParamSetPairs() params.ParamSetPairs {
/*
because the subspace package makes liberal use of pointers to set and get values from the store,
this method needs to have a pointer receiver AND NewParamSetPair needs to receive the
parameter values as pointer arguments, otherwise either the internal type reflection panics or the value will not be
set on the correct Params data struct
*/
return params.ParamSetPairs{}
}
// Validate checks if the parameters are valid
func (m Params) Validate() error {
return nil
}