Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 482 Bytes

File metadata and controls

19 lines (13 loc) · 482 Bytes

Key

Start by creating a key.go file in the types folder. Within your key.go file, you will set your keys to be used throughout the creation of the module.

Defining the keys that will be used throughout the application helps with writing DRY code.

package types

const (
	// module name
	ModuleName = "nameservice"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName
)

Now we move on to the writing the Keeper for the module.