{"modulePath":"github.com/DDWS-com/node","version":"v0.1.0-beta.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package app\n\n## Constants\n\n```go\nconst (\n\tAppName = \"akash\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tDefaultHome = os.ExpandEnv(\"$HOME/.akash\")\n)\n```\n\n## Functions\n\n```go\nfunc ModuleAccountAddrs() map[string]bool\n```\n\n```go\nfunc ModuleAccountPerms() map[string][]string\n```\n\n```go\nfunc ModuleBasics() module.BasicManager\n```\nModuleBasics returns all app modules basics\n\n```go\nfunc NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)\n```\nNewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures \u0026 account numbers, and deducts fees from the first signer.\n\n```go\nfunc OrderEndBlockers(_ []string) []string\n```\nOrderEndBlockers returns EndBlockers (crisis, govtypes, staking) with no relative order.\n\n```go\nfunc OrderInitGenesis(_ []string) []string\n```\nOrderInitGenesis returns module names in order for init genesis calls. NOTE: The genutils module must occur after staking so that pools are properly initialized with tokens from genesis accounts. NOTE: Capability module must occur first so that it can initialize any capabilities so that other modules that want to create or claim capabilities afterwards in InitChain can do so safely.\n\n```go\nfunc RegisterSwaggerAPI(_ client.Context, rtr *mux.Router)\n```\nRegisterSwaggerAPI registers swagger route with API Server\n\n```go\nfunc TrimQuotes(data string) string\n```\n\n## Types\n\n```go\ntype AkashApp struct {\n\t*baseapp.BaseApp\n\t*apptypes.App\n\t// contains filtered or unexported fields\n}\n```\nAkashApp extends ABCI application\n\n```go\nfunc InitAkashAppForTestnet(\n\tapp *AkashApp,\n\tdb dbm.DB,\n\ttcfg *TestnetConfig,\n) *AkashApp\n```\nInitAkashAppForTestnet is broken down into two sections: Required Changes: Changes that, if not made, will cause the testnet to halt or panic Optional Changes: Changes to customize the testnet to one's liking (lower vote times, fund accounts, etc)\n\n```go\nfunc NewApp(\n\tlogger log.Logger,\n\tdb dbm.DB,\n\ttio io.Writer,\n\tloadLatest bool,\n\tinvCheckPeriod uint,\n\tskipUpgradeHeights map[int64]bool,\n\tencodingConfig sdkutil.EncodingConfig,\n\tappOpts servertypes.AppOptions,\n\toptions ...func(*baseapp.BaseApp),\n) *AkashApp\n```\nNewApp creates and returns a new Akash App.\n\n```go\nfunc Setup(opts ...SetupAppOption) *AkashApp\n```\nSetup initializes a new AkashApp. A Nop logger is set in AkashApp.\n\n```go\nfunc (app *AkashApp) AppCodec() codec.Codec\n```\nAppCodec returns AkashApp's app codec.\n\n```go\nfunc (app *AkashApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)\n```\nBeginBlocker is a function in which application updates every begin block\n\n```go\nfunc (app *AkashApp) BlockedAddrs() map[string]bool\n```\nBlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.\n\n```go\nfunc (app *AkashApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)\n```\nEndBlocker is a function in which application updates every end block\n\n```go\nfunc (app *AkashApp) ExportAppStateAndValidators(\n\tforZeroHeight bool,\n\tjailAllowedAddrs []string,\n\tmodulesToExport []string,\n) (servertypes.ExportedApp, error)\n```\nExportAppStateAndValidators exports the state of the application for a genesis file.\n\n```go\nfunc (app *AkashApp) GetSubspace(moduleName string) paramstypes.Subspace\n```\nGetSubspace returns a param subspace for a given module name.\n\n```go\nfunc (app *AkashApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)\n```\nInitChainer application update at chain initialization\n\n```go\nfunc (app *AkashApp) InterfaceRegistry() codectypes.InterfaceRegistry\n```\nInterfaceRegistry returns AkashApp's InterfaceRegistry\n\n```go\nfunc (app *AkashApp) LegacyAmino() *codec.LegacyAmino\n```\nLegacyAmino returns AkashApp's amino codec.\n\n```go\nfunc (app *AkashApp) LoadHeight(height int64) error\n```\nLoadHeight method of AkashApp loads baseapp application version with given height\n\n```go\nfunc (app *AkashApp) ModuleAccountAddrs() map[string]bool\n```\nModuleAccountAddrs returns all the app's module account addresses.\n\n```go\nfunc (app *AkashApp) Name() string\n```\nName returns the name of the App\n\n```go\nfunc (app *AkashApp) NewProposalContext(header tmproto.Header) sdk.Context\n```\nNewProposalContext returns a context with a branched version of the state that is safe to query during ProcessProposal.\n\n```go\nfunc (app *AkashApp) PreBlocker(ctx sdk.Context, req *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)\n```\nPreBlocker application updates before each begin block.\n\n```go\nfunc (app *AkashApp) Precommitter(ctx sdk.Context)\n```\nPrecommitter application updates before the commital of a block after all transactions have been delivered.\n\n```go\nfunc (app *AkashApp) PrepareCheckStater(ctx sdk.Context)\n```\n\n```go\nfunc (app *AkashApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)\n```\nRegisterAPIRoutes registers all application module routes with the provided API server.\n\n```go\nfunc (app *AkashApp) RegisterNodeService(cctx client.Context, cfg config.Config)\n```\nRegisterNodeService registers the node gRPC Query service.\n\n```go\nfunc (app *AkashApp) RegisterTendermintService(cctx client.Context)\n```\nRegisterTendermintService implements the Application.RegisterTendermintService method.\n\n```go\nfunc (app *AkashApp) RegisterTxService(clientCtx client.Context)\n```\nRegisterTxService implements the Application.RegisterTxService method.\n\n```go\nfunc (app *AkashApp) SimulationManager() *module.SimulationManager\n```\nSimulationManager implements the SimulationApp interface\n\n```go\nfunc (app *AkashApp) TxConfig() client.TxConfig\n```\nTxConfig returns SimApp's TxConfig\n\n```go\ntype GenesisState map[string]json.RawMessage\n```\nGenesisState of the blockchain is represented here as a map of raw json messages key's by an identifier string. The identifier is used to determine which module genesis information belongs to, so it may be appropriately routed during init chain. Within this application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.\n\n```go\nfunc GenesisStateWithValSet(cdc codec.Codec) GenesisState\n```\n\n```go\nfunc NewDefaultGenesisState(cdc codec.Codec) GenesisState\n```\nNewDefaultGenesisState generates the default state for the application.\n\n```go\ntype HandlerOptions struct {\n\tante.HandlerOptions\n\tCDC       codec.BinaryCodec\n\tGovKeeper *govkeeper.Keeper\n}\n```\nHandlerOptions extends the SDK's AnteHandler options\n\n```go\ntype SetupAppOption func(*setupAppOptions)\n```\n\n```go\nfunc WithChainID(val string) SetupAppOption\n```\nWithChainID sets home dir for app\n\n```go\nfunc WithCheckTx(val bool) SetupAppOption\n```\nWithCheckTx sets home dir for app\n\n```go\nfunc WithEncConfig(val sdkutil.EncodingConfig) SetupAppOption\n```\n\n```go\nfunc WithGenesis(val SetupGenesisFn) SetupAppOption\n```\n\n```go\nfunc WithHome(val string) SetupAppOption\n```\nWithHome sets home dir for app\n\n```go\ntype SetupGenesisFn func(cdc codec.Codec) GenesisState\n```\n\n```go\ntype TestnetAccount struct {\n\tAddress  sdk.AccAddress `json:\"address\"`\n\tBalances []sdk.Coin     `json:\"balances\"`\n}\n```\n\n```go\ntype TestnetConfig struct {\n\tAccounts   []TestnetAccount\n\tValidators []TestnetValidator\n\tGov        TestnetGovConfig\n\tUpgrade    TestnetUpgrade\n}\n```\n\n```go\ntype TestnetDelegation struct {\n\tAddress sdk.AccAddress `json:\"address\"`\n\tAmount  sdk.Coin       `json:\"amount\"`\n}\n```\n\n```go\ntype TestnetGovConfig struct {\n\tVotingParams *struct {\n\t\tVotingPeriod        TestnetVotingPeriod `json:\"voting_period,omitempty\"`\n\t\tExpeditedVotePeriod TestnetVotingPeriod `json:\"expedited_vote_period\"`\n\t} `json:\"voting_params,omitempty\"`\n}\n```\n\n```go\ntype TestnetUpgrade struct {\n\tName string\n}\n```\n\n```go\ntype TestnetValidator struct {\n\tOperatorAddress   sdk.Address\n\tConsensusAddress  sdk.ConsAddress\n\tConsensusPubKey   *types.Any\n\tStatus            stakingtypes.BondStatus\n\tMoniker           string\n\tCommission        stakingtypes.Commission\n\tMinSelfDelegation sdkmath.Int\n\tDelegations       []TestnetDelegation\n}\n```\n\n```go\ntype TestnetVotingPeriod struct {\n\ttime.Duration\n}\n```\n\n```go\nfunc (t *TestnetVotingPeriod) UnmarshalJSON(data []byte) error\n```\n\n","path":"github.com/DDWS-com/node/app","name":"app","synopsis":"","isRedistributable":true}
