-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae94479
commit 8136591
Showing
4 changed files
with
391 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
syntax = "proto3"; | ||
package kava.community.v1beta1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "kava/community/v1beta1/params.proto"; | ||
|
||
option go_package = "github.com/kava-labs/kava/x/community/types"; | ||
|
||
// GenesisState defines the community module's genesis state. | ||
message GenesisState { | ||
// params defines all the paramaters related to commmunity | ||
Params params = 1 [(gogoproto.nullable) = false]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package types | ||
|
||
// NewGenesisState returns a new genesis state object | ||
func NewGenesisState(params Params) GenesisState { | ||
return GenesisState{ | ||
Params: params, | ||
} | ||
} | ||
|
||
// DefaultGenesisState returns default genesis state | ||
func DefaultGenesisState() GenesisState { | ||
return NewGenesisState( | ||
DefaultParams(), | ||
) | ||
} | ||
|
||
// Validate checks the params are valid | ||
func (gs GenesisState) Validate() error { | ||
return gs.Params.Validate() | ||
} |
Oops, something went wrong.