genutil

package
v0.4.2-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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

View Source
const (
	ModuleName = genutil.ModuleName
)

Variables

View Source
var (
	// functions aliases
	NewCosmosAppModule           = genutil.NewAppModule
	InitGenesis                  = genutil.InitGenesis
	InitializeNodeValidatorFiles = genutil.InitializeNodeValidatorFiles
	NewGenesisState              = genutil.NewGenesisState
	NewGenesisStateFromStdTx     = genutil.NewGenesisStateFromStdTx
	NewInitConfig                = genutil.NewInitConfig
	GetGenesisStateFromAppState  = genutil.GetGenesisStateFromAppState
	SetGenesisStateInAppState    = genutil.SetGenesisStateInAppState
	GenesisStateFromGenDoc       = genutil.GenesisStateFromGenDoc
	GenesisStateFromGenFile      = genutil.GenesisStateFromGenFile
	ValidateGenesis              = genutil.ValidateGenesis
	ExportGenesisFile            = genutil.ExportGenesisFile
	CosmosModuleCdc              = genutil.ModuleCdc
)
View Source
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

Types

type AccountKeeper

type AccountKeeper = types.AccountKeeper

type AppMap added in v0.4.0

type AppMap = genutil.AppMap

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) 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 InitConfig added in v0.4.0

type InitConfig = genutil.InitConfig

type MigrationCallback added in v0.4.0

type MigrationCallback = genutil.MigrationCallback

type MigrationMap added in v0.4.0

type MigrationMap = genutil.MigrationMap

type StakingKeeper

type StakingKeeper = types.StakingKeeper

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL