github.com/InjectiveLabs/sdk-go@v1.53.0/chain/auction/types/genesis.go (about) 1 package types 2 3 func NewGenesisState() GenesisState { 4 return GenesisState{} 5 } 6 7 func (gs GenesisState) Validate() error { 8 if err := gs.Params.Validate(); err != nil { 9 return err 10 } 11 return nil 12 } 13 14 func DefaultGenesisState() *GenesisState { 15 return &GenesisState{ 16 Params: DefaultParams(), 17 AuctionRound: 0, 18 HighestBid: nil, 19 AuctionEndingTimestamp: 0, 20 } 21 }