forked from cerc-io/laconicd
Prathamesh Musale
cb1f723475
To be added in an upcoming PR: - commands to commit, reveal and get bids Reviewed-on: deep-stack/laconic2d#2 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
25 lines
528 B
Go
25 lines
528 B
Go
package auction
|
|
|
|
func DefaultGenesisState() *GenesisState {
|
|
return &GenesisState{
|
|
Params: DefaultParams(),
|
|
Auctions: &Auctions{Auctions: []Auction{}},
|
|
}
|
|
}
|
|
|
|
func NewGenesisState(params Params, auctions []Auction) *GenesisState {
|
|
return &GenesisState{
|
|
Params: params,
|
|
Auctions: &Auctions{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
|
|
}
|