cosmos-sdk/types/initgenesis.go

11 lines
298 B
Go
Raw Normal View History

package types
import (
"encoding/json"
)
2018-03-27 12:46:06 -07:00
// Run only once on chain initialization, should write genesis state to store
// or throw an error if some required information was not provided, in which case
// the application will panic.
type InitGenesis func(ctx Context, data json.RawMessage) error