Documentation

Index

Constants

View Source
const (
	AccountAddressPrefix = "cosmos"
)

Variables

View Source
var (
	DefaultCLIHome  = os.ExpandEnv("$HOME/.blogcli")
	DefaultNodeHome = os.ExpandEnv("$HOME/.blogd")
	ModuleBasics    = module.NewBasicManager(
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		staking.AppModuleBasic{},
		params.AppModuleBasic{},
		supply.AppModuleBasic{},
		blog.AppModuleBasic{},
	)
)
View Source
var (
	AccountPubKeyPrefix    = AccountAddressPrefix + "pub"
	ValidatorAddressPrefix = AccountAddressPrefix + "valoper"
	ValidatorPubKeyPrefix  = AccountAddressPrefix + "valoperpub"
	ConsNodeAddressPrefix  = AccountAddressPrefix + "valcons"
	ConsNodePubKeyPrefix   = AccountAddressPrefix + "valconspub"
)

Functions

func GetMaccPerms

func GetMaccPerms() map[string][]string

func MakeCodec

func MakeCodec() *codec.Codec

func SetConfig

func SetConfig()

Types

type GenesisState

type GenesisState map[string]json.RawMessage

func NewDefaultGenesisState

func NewDefaultGenesisState() GenesisState

type NewApp

type NewApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

func NewInitApp

func NewInitApp(
	logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
	invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp),
) *NewApp

func (*NewApp) BeginBlocker

func (app *NewApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock

func (*NewApp) Codec

func (app *NewApp) Codec() *codec.Codec

func (*NewApp) EndBlocker

func (app *NewApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock

func (*NewApp) ExportAppStateAndValidators

func (app *NewApp) ExportAppStateAndValidators(
	forZeroHeight bool, jailWhiteList []string,
) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)

    ExportAppStateAndValidators exports the state of the application for a genesis file.

    func (*NewApp) InitChainer

    func (app *NewApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain

    func (*NewApp) LoadHeight

    func (app *NewApp) LoadHeight(height int64) error

    func (*NewApp) ModuleAccountAddrs

    func (app *NewApp) ModuleAccountAddrs() map[string]bool

    func (*NewApp) SimulationManager

    func (app *NewApp) SimulationManager() *module.SimulationManager