Back to

Package genutil

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


nolint autogenerated code using aliases generated for the following subdirectories: ALIASGEN:


Package genutil has moduleCdc, we have to implement codec used part same as origin



const (
	ModuleName = genutil.ModuleName


var (
	// functions aliases
	NewCosmosAppModule           = genutil.NewAppModule
	InitGenesis                  = genutil.InitGenesis
	InitializeNodeValidatorFiles = genutil.InitializeNodeValidatorFiles
	NewInitConfig                = genutil.NewInitConfig
	ExportGenesisFileWithTime    = genutil.ExportGenesisFileWithTime
	GenesisStateFromGenFile      = genutil.GenesisStateFromGenFile
	GenAppStateFromConfig        = genutil.GenAppStateFromConfig
	ExportGenesisFile            = genutil.ExportGenesisFile
	CosmosModuleCdc              = genutil.ModuleCdc
var (
	ModuleCdc = types.ModuleCdc

func NewAppModule

func NewAppModule(accountKeeper AccountKeeper,
	stakingKeeper StakingKeeper, deliverTx func(abci.RequestDeliverTx) abci.ResponseDeliverTx) module.AppModule

NewAppModule creates a new AppModule object

func ValidateGenesis

func ValidateGenesis(genesisState GenesisState) error

ValidateGenesis validates GenTx transactions

type AccountKeeper

type AccountKeeper = types.AccountKeeper

type AppModule

type AppModule struct {
	// contains filtered or unexported fields

AppModule implements an application module for the genutil module.

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, rbb abci.RequestBeginBlock)

BeginBlock returns the begin blocker for the genutil module.

func (AppModule) EndBlock

func (am AppModule) EndBlock(ctx sdk.Context, rbb abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock returns the end blocker for the genutil module.

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis returns the exported genesis state as raw bytes for the genutil module.

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis performs genesis initialization for the genutil module.

func (AppModule) Name

func (am AppModule) Name() string

Name returns the genutil module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the genutil module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the genutil module sdk.Querier.

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute returns the genutil module's querier route name.

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants performs a no-op.

func (AppModule) Route

func (am AppModule) Route() string

Route returns the message routing key for the genutil module.

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module used by the genutil module.

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the genutil module.

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the root query command for the genutil module.

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the root tx command for the genutil module.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the genutil module's name

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec registers the genutil module's types for the given codec.

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(cliCtx context.CLIContext, route *mux.Router)

RegisterRESTRoutes registers the REST routes for the genutil module.

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the genutil module.

type CosmosAppModule

type CosmosAppModule = genutil.AppModule

type CosmosAppModuleBasic

type CosmosAppModuleBasic = genutil.AppModuleBasic

type GenesisAccountsIterator

type GenesisAccountsIterator = types.GenesisAccountsIterator

type GenesisState

type GenesisState = genutil.GenesisState

type StakingKeeper

type StakingKeeper = types.StakingKeeper

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier