Documentation ¶
Index ¶
- Constants
- Variables
- func AppConfig() depinject.Config
- type MiniApp
- func (app *MiniApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *MiniApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *MiniApp) LegacyAmino() registry.AminoRegistrar
- func (app *MiniApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *MiniApp) SimulationManager() *module.SimulationManager
Constants ¶
View Source
const (
// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address.
Bech32PrefixAccAddr = "mini"
)
Variables ¶
View Source
var ( // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key. Bech32PrefixAccPub = Bech32PrefixAccAddr + "pub" // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address. Bech32PrefixValAddr = Bech32PrefixAccAddr + "valoper" // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key. Bech32PrefixValPub = Bech32PrefixAccAddr + "valoperpub" // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address. Bech32PrefixConsAddr = Bech32PrefixAccAddr + "valcons" // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key. Bech32PrefixConsPub = Bech32PrefixAccAddr + "valconspub" )
View Source
var AppConfigYAML []byte
View Source
var DefaultNodeHome string
DefaultNodeHome default home directories for the application daemon
Functions ¶
Types ¶
type MiniApp ¶
type MiniApp struct { *runtime.App // keepers StakingKeeper *stakingkeeper.Keeper DistrKeeper distrkeeper.Keeper // contains filtered or unexported fields }
MiniApp extends an ABCI application, but with most of its parameters exported. They are exported for convenience in creating helper functions, as object capabilities aren't needed for testing.
func NewMiniApp ¶
func NewMiniApp( logger log.Logger, db corestore.KVStoreWithBatch, traceStore io.Writer, loadLatest bool, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) (*MiniApp, error)
NewMiniApp returns a reference to an initialized MiniApp.
func (*MiniApp) ExportAppStateAndValidators ¶
func (app *MiniApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*MiniApp) GetKey ¶
func (app *MiniApp) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
func (*MiniApp) LegacyAmino ¶
func (app *MiniApp) LegacyAmino() registry.AminoRegistrar
LegacyAmino returns MiniApp's amino codec.
func (*MiniApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*MiniApp) SimulationManager ¶
func (app *MiniApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
Click to show internal directories.
Click to hide internal directories.