Documentation ¶
Index ¶
- Constants
- Variables
- func MakeCodec() *codec.Codec
- type GenesisState
- type MainApp
- func (app *MainApp) BeginBlocker(ctx cTypes.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *MainApp) EndBlocker(ctx cTypes.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *MainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *MainApp) InitChainer(ctx cTypes.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *MainApp) LoadHeight(height int64) error
- func (app *MainApp) ModuleAccountAddrs() map[string]bool
Constants ¶
View Source
const (
DefaultKeyPass = "1234567890"
)
Variables ¶
View Source
var ( DefaultCLIHome = os.ExpandEnv("$HOME/.maincli") DefaultNodeHome = os.ExpandEnv("$HOME/.maind") ModuleBasics = module.NewBasicManager( genaccounts.AppModuleBasic{}, genutil.AppModuleBasic{}, auth.AppModuleBasic{}, bank.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic(paramsclient.ProposalHandler, distrclient.ProposalHandler), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, supply.AppModuleBasic{}, reputation.AppModuleBasic{}, acl.AppModuleBasic{}, negotiation.AppModuleBasic{}, orders.AppModuleBasic{}, ) )
Functions ¶
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the application.
type MainApp ¶
func NewMainApp ¶
func (*MainApp) BeginBlocker ¶
func (app *MainApp) BeginBlocker(ctx cTypes.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
application updates every begin block
func (*MainApp) EndBlocker ¶
func (app *MainApp) EndBlocker(ctx cTypes.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
application updates every end block
func (*MainApp) ExportAppStateAndValidators ¶
func (app *MainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
func (*MainApp) InitChainer ¶
func (app *MainApp) InitChainer(ctx cTypes.Context, req abci.RequestInitChain) abci.ResponseInitChain
application update at chain initialization
func (*MainApp) LoadHeight ¶
load a particular height
func (*MainApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
Click to show internal directories.
Click to hide internal directories.