upgrade

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName        = types.ModuleName
	StoreKey          = types.StoreKey
	RouterKey         = types.RouterKey
	QuerierRoute      = types.QuerierRoute
	DefaultParamspace = types.DefaultParamspace
)

Variables

View Source
var (
	// functions aliases
	NewQuerier                   = keeper.NewQuerier
	NewKeeper                    = keeper.NewKeeper
	NewVersionInfo               = types.NewVersionInfo
	NewAppUpgradeProposalHandler = keeper.NewAppUpgradeProposalHandler

	// variable aliases
	ModuleCdc                  = types.ModuleCdc
	EventTypeUpgradeAppVersion = types.EventTypeUpgradeAppVersion
	EventTypeUpgradeFailure    = types.EventTypeUpgradeFailure
	AttributeKeyAppVersion     = types.AttributeKeyAppVersion
)

Functions

func EndBlocker

func EndBlocker(ctx sdk.Context, keeper Keeper)

EndBlocker does signal maintenance in the end of block

func ExportGenesis

func ExportGenesis(_ sdk.Context) types.GenesisState

ExportGenesis outputs genesis state

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState)

InitGenesis builds the genesis version for first version

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule is a struct of app module

func NewAppModule

func NewAppModule(keeper Keeper) AppModule

NewAppModule creates a new AppModule object for upgrade module

func (AppModule) BeginBlock

func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

func (AppModule) EndBlock

EndBlock is invoked on the end of each block

func (AppModule) ExportGenesis

func (AppModule) ExportGenesis(_ sdk.Context) json.RawMessage

func (AppModule) InitGenesis

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

InitGenesis initializes module genesis

func (AppModule) NewHandler

func (AppModule) NewHandler() sdk.Handler

nolint

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns module querier

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns module querier route name

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

func (AppModule) Route

func (AppModule) Route() string

Route returns module message route name

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic is a struct of app module basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns default genesis state

func (AppModuleBasic) GetQueryCmd

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

GetQueryCmd gets the root query command of this module

func (AppModuleBasic) GetTxCmd

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

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns module name

func (AppModuleBasic) RegisterCodec

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

RegisterCodec registers module codec

func (AppModuleBasic) RegisterRESTRoutes

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

func (AppModuleBasic) ValidateGenesis

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

nolint

type Keeper

type Keeper = keeper.Keeper

type VersionInfo

type VersionInfo = types.VersionInfo

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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