Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/genutil/internal/types/
nolint
Package genutil has moduleCdc, we have to implement codec used part same as origin
Index ¶
- Constants
- Variables
- func NewAppModule(accountKeeper AccountKeeper, stakingKeeper StakingKeeper, ...) module.AppModule
- func ValidateGenesis(genesisState GenesisState) error
- type AccountKeeper
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, rbb abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, rbb abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(cliCtx context.CLIContext, route *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type CosmosAppModule
- type CosmosAppModuleBasic
- type GenesisAccountsIterator
- type GenesisState
- type StakingKeeper
Constants ¶
const (
ModuleName = genutil.ModuleName
)
Variables ¶
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
)
Functions ¶
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
Types ¶
type AccountKeeper ¶
type AccountKeeper = types.AccountKeeper
type AppModule ¶
type AppModule struct { AppModuleBasic // 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) NewHandler ¶
NewHandler returns an sdk.Handler for the genutil module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the genutil module sdk.Querier.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the genutil module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants performs a no-op.
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 CosmosAppModuleBasic ¶
type CosmosAppModuleBasic = genutil.AppModuleBasic
type GenesisAccountsIterator ¶
type GenesisAccountsIterator = types.GenesisAccountsIterator
type GenesisState ¶
type GenesisState = genutil.GenesisState
type StakingKeeper ¶
type StakingKeeper = types.StakingKeeper