Documentation
¶
Index ¶
Constants ¶
View Source
const ( StoreKey = types.StoreKey RouterKey = types.RouterKey QuerierRoute = types.QuerierRoute DefaultParamspace = types.DefaultParamspace DefaultCodespace = types.DefaultCodespace )
Variables ¶
View Source
var ( MsgCdc = msgs.MsgCdc NewKeeper = keeper.NewKeeper NewModuleClient = client.NewModuleClient GetAccountCmd = cli.GetAccountCmd SendTxCmd = cli.SendTxCmd RegisterCodec = msgs.RegisterCodec )
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data GenesisState)
InitGenesis sets distribution information for genesis.
func NewHandler ¶
Handle all "issue" type messages.
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis performs basic validation of bank genesis data returning an error for any failed validation criteria.
Types ¶
type CoinIssueInfo ¶
type CoinIssueInfo = types.CoinIssueInfo
type GenesisState ¶
type GenesisState struct {
StartingIssueId uint64 `json:"starting_issue_id"`
}
GenesisState - all issue state that must be provided at genesis
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns a default genesis state
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func NewGenesisState ¶
func NewGenesisState(startingIssueId uint64) GenesisState
NewGenesisState creates a new genesis state.
func (GenesisState) Equal ¶
func (data GenesisState) Equal(data2 GenesisState) bool
Checks whether 2 GenesisState structs are equivalent.
func (GenesisState) IsEmpty ¶
func (data GenesisState) IsEmpty() bool
Returns if a GenesisState is empty or has data in it
Click to show internal directories.
Click to hide internal directories.