2024-07-01 06:05:28 +00:00
|
|
|
package onboarding
|
|
|
|
|
2024-07-03 11:38:48 +00:00
|
|
|
func DefaultGenesisState() *GenesisState {
|
2024-07-01 06:05:28 +00:00
|
|
|
return &GenesisState{
|
2024-07-03 11:38:48 +00:00
|
|
|
Params: DefaultParams(),
|
|
|
|
Participants: []Participant{},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewGenesisState(params Params, participants []Participant) *GenesisState {
|
|
|
|
return &GenesisState{
|
|
|
|
Params: params,
|
|
|
|
Participants: participants,
|
2024-07-01 06:05:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate performs basic genesis state validation returning an error upon any
|
|
|
|
func (gs *GenesisState) Validate() error {
|
|
|
|
if err := gs.Params.Validate(); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|