-
Notifications
You must be signed in to change notification settings - Fork 0
/
genesis.go
26 lines (22 loc) · 846 Bytes
/
genesis.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
package types
// GenesisState - all tombstone state that must be provided at genesis
type GenesisState struct {
// TODO: Fill out what is needed by the module for genesis
}
// NewGenesisState creates a new GenesisState object
func NewGenesisState( /* TODO: Fill out with what is needed for genesis state */) GenesisState {
return GenesisState{
// TODO: Fill out according to your genesis state
}
}
// DefaultGenesisState - default GenesisState used by Cosmos Hub
func DefaultGenesisState() GenesisState {
return GenesisState{
// TODO: Fill out according to your genesis state, these values will be initialized but empty
}
}
// ValidateGenesis validates the tombstone genesis parameters
func ValidateGenesis(data GenesisState) error {
// TODO: Create a sanity check to make sure the state conforms to the modules needs
return nil
}