forked from cerc-io/laconicd
Prathamesh Musale
328c06d919
Reviewed-on: deep-stack/laconic2d#1 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
25 lines
488 B
Go
25 lines
488 B
Go
package auction
|
|
|
|
func DefaultGenesisState() *GenesisState {
|
|
return &GenesisState{
|
|
Params: DefaultParams(),
|
|
Auctions: []*Auction{},
|
|
}
|
|
}
|
|
|
|
func NewGenesisState(params Params, auctions []*Auction) *GenesisState {
|
|
return &GenesisState{
|
|
Params: params,
|
|
Auctions: auctions,
|
|
}
|
|
}
|
|
|
|
// 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
|
|
}
|