Documentation ¶
Index ¶
- Constants
- Variables
- func MakeEncodingConfig() params.EncodingConfig
- func RegisterSwaggerAPI(rtr *mux.Router)
- func SetConfig()
- type DKGApp
- func (app *DKGApp) AppCodec() codec.Codec
- func (app *DKGApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *DKGApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *DKGApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *DKGApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *DKGApp) LegacyAmino() *codec.LegacyAmino
- func (app *DKGApp) LoadHeight(height int64) error
- func (app *DKGApp) ModuleAccountAddrs() map[string]bool
- func (app *DKGApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *DKGApp) RegisterTendermintService(clientCtx client.Context)
- func (app *DKGApp) RegisterTxService(clientCtx client.Context)
- type GenesisState
Constants ¶
const Name = "dkg"
Name is the name of the application
Variables ¶
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string // ModuleBasics defines the module BasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, vesting.AppModuleBasic{}, ibc.AppModuleBasic{}, transfer.AppModuleBasic{}, ) )
var ( AccountAddressPrefix = "cosmos" AccountPubKeyPrefix = AccountAddressPrefix + sdk.PrefixPublic ValidatorAddressPrefix = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixOperator ValidatorPubKeyPrefix = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic ConsNodeAddressPrefix = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixConsensus ConsNodePubKeyPrefix = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
Bech32 prefixes
Functions ¶
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
func RegisterSwaggerAPI ¶
RegisterSwaggerAPI registers swagger route with API Server
Types ¶
type DKGApp ¶
func (*DKGApp) AppCodec ¶
AppCodec returns DKGApp's app codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*DKGApp) BeginBlocker ¶
func (app *DKGApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker calls the BeginBlock() function of every module at the beginning of a new block
func (*DKGApp) EndBlocker ¶
func (app *DKGApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker calls the EndBlock() function of every module at the end of a block
func (*DKGApp) ExportAppStateAndValidators ¶
func (app *DKGApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*DKGApp) InitChainer ¶
func (app *DKGApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer handles the chain initialization from a genesis file
func (*DKGApp) LegacyAmino ¶
func (app *DKGApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns DKGApp's amino codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*DKGApp) LoadHeight ¶
LoadHeight loads the application version at a given height. It will panic if called more than once on a running baseapp.
func (*DKGApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*DKGApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*DKGApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*DKGApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
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.