app

package
v0.7.21-doubletap.rc22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 85 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "akash"
)

Variables

View Source
var DefaultHome = os.ExpandEnv("$HOME/.akash")

Functions

func MacAddrs added in v0.9.1

func MacAddrs() map[string]bool

func MacPerms added in v0.9.1

func MacPerms() map[string][]string

func MakeCodecs added in v0.9.1

func MakeCodecs() (codec.Marshaler, *codec.LegacyAmino)

MakeCodecs constructs the *std.Codec and *codec.LegacyAmino instances used by simapp. It is useful for tests and clients who do not want to construct the full simapp

func MakeEncodingConfig added in v0.9.1

func MakeEncodingConfig() simparams.EncodingConfig

MakeEncodingConfig creates an EncodingConfig for testing

func ModuleBasics added in v0.6.0

func ModuleBasics() module.BasicManager

ModuleBasics returns all app modules basics

func RegisterSwaggerAPI added in v0.9.1

func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router)

RegisterSwaggerAPI registers swagger route with API Server

Types

type AkashApp added in v0.6.0

type AkashApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

AkashApp extends ABCI appplication

func NewApp added in v0.6.0

func NewApp(
	logger log.Logger, db dbm.DB, tio io.Writer, invCheckPeriod uint, skipUpgradeHeights map[int64]bool,
	homePath string, options ...func(*bam.BaseApp),
) *AkashApp

NewApp creates and returns a new Akash App.

func Setup added in v0.9.1

func Setup(isCheckTx bool) *AkashApp

Setup initializes a new AkashApp. A Nop logger is set in AkashApp.

func (*AkashApp) AppCodec added in v0.9.1

func (app *AkashApp) AppCodec() codec.Marshaler

AppCodec returns AkashApp's app codec.

func (*AkashApp) BeginBlocker added in v0.6.0

func (app *AkashApp) BeginBlocker(
	ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock

BeginBlocker is a function in which application updates every begin block

func (*AkashApp) EndBlocker added in v0.6.0

func (app *AkashApp) EndBlocker(
	ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock

EndBlocker is a function in which application updates every end block

func (*AkashApp) ExportAppStateAndValidators added in v0.6.0

func (app *AkashApp) ExportAppStateAndValidators(
	forZeroHeight bool, jailAllowedAddrs []string,
) (servertypes.ExportedApp, error)

ExportAppStateAndValidators exports the state of the application for a genesis file.

func (*AkashApp) GetKey added in v0.9.1

func (app *AkashApp) GetKey(storeKey string) *sdk.KVStoreKey

GetKey returns the KVStoreKey for the provided store key.

func (*AkashApp) GetSubspace added in v0.9.1

func (app *AkashApp) GetSubspace(moduleName string) paramstypes.Subspace

GetSubspace returns a param subspace for a given module name.

func (*AkashApp) GetTKey added in v0.9.1

func (app *AkashApp) GetTKey(storeKey string) *sdk.TransientStoreKey

GetTKey returns the TransientStoreKey for the provided store key.

func (*AkashApp) InitChainer added in v0.6.0

func (app *AkashApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain

InitChainer application update at chain initialization

func (*AkashApp) InterfaceRegistry added in v0.9.1

func (app *AkashApp) InterfaceRegistry() codectypes.InterfaceRegistry

InterfaceRegistry returns AkashApp's InterfaceRegistry

func (*AkashApp) LegacyAmino added in v0.9.1

func (app *AkashApp) LegacyAmino() *codec.LegacyAmino

LegacyAmino returns AkashApp's amino codec.

func (*AkashApp) LoadHeight added in v0.6.0

func (app *AkashApp) LoadHeight(height int64) error

LoadHeight method of AkashApp loads baseapp application version with given height

func (*AkashApp) ModuleAccountAddrs added in v0.6.0

func (app *AkashApp) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

func (*AkashApp) Name added in v0.9.1

func (app *AkashApp) Name() string

Name returns the name of the App

func (*AkashApp) RegisterAPIRoutes added in v0.9.1

func (app *AkashApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)

RegisterAPIRoutes registers all application module routes with the provided API server.

func (*AkashApp) SimulationManager added in v0.6.0

func (app *AkashApp) SimulationManager() *module.SimulationManager

SimulationManager implements the SimulationApp interface

type GenesisState added in v0.9.1

type GenesisState map[string]json.RawMessage

The genesis state of the blockchain is represented here as a map of raw json messages key'd by a 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.

func NewDefaultGenesisState added in v0.9.1

func NewDefaultGenesisState() GenesisState

NewDefaultGenesisState generates the default state for the application.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL