Documentation ¶
Index ¶
- Variables
- func MakeCodec() *codec.Codec
- type GenesisState
- type SgnApp
- func (app *SgnApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *SgnApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *SgnApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *SgnApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *SgnApp) LoadHeight(height int64) error
- func (app *SgnApp) ModuleAccountAddrs() map[string]bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // default home directories for the application CLI DefaultCLIHome = os.ExpandEnv("$HOME/.sgncli") // DefaultNodeHome sets the folder where the application data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.sgnd") // ModuleBasicManager is in charge of setting up basic module elemnets ModuleBasics = module.NewBasicManager( genutil.AppModuleBasic{}, auth.AppModuleBasic{}, bank.AppModuleBasic{}, staking.AppModuleBasic{}, params.AppModuleBasic{}, supply.AppModuleBasic{}, upgrade.AppModuleBasic{}, cron.AppModule{}, gov.NewAppModuleBasic(govclient.ParamProposalHandler, govclient.UpgradeProposalHandler), slash.AppModule{}, guard.AppModule{}, sync.AppModule{}, validator.AppModuleBasic{}, ) )
Functions ¶
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState represents chain state at the start of the chain. Any initial state (account balances) are stored here.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
type SgnApp ¶ added in v0.2.5
func NewSgnApp ¶
func NewSgnApp(logger tlog.Logger, db dbm.DB, skipUpgradeHeights map[int64]bool, baseAppOptions ...func(*bam.BaseApp)) *SgnApp
NewSgnApp is a constructor function for sgnApp
func (*SgnApp) BeginBlocker ¶ added in v0.2.5
func (app *SgnApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
func (*SgnApp) EndBlocker ¶ added in v0.2.5
func (app *SgnApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
func (*SgnApp) ExportAppStateAndValidators ¶ added in v0.2.5
func (app *SgnApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
func (*SgnApp) InitChainer ¶ added in v0.2.5
func (app *SgnApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
func (*SgnApp) LoadHeight ¶ added in v0.2.5
func (*SgnApp) ModuleAccountAddrs ¶ added in v0.2.5
ModuleAccountAddrs returns all the app's module account addresses.
Click to show internal directories.
Click to hide internal directories.