app

package
v0.0.0-...-e391bab Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 100 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "virtengine"
)

Variables

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

Functions

func MacAddrs

func MacAddrs() map[string]bool

func MacPerms

func MacPerms() map[string][]string

func MakeCodecs

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

func MakeEncodingConfig() simparams.EncodingConfig

MakeEncodingConfig creates an EncodingConfig for testing

func ModuleBasics

func ModuleBasics() module.BasicManager

ModuleBasics returns all app modules basics

func RegisterSwaggerAPI

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

RegisterSwaggerAPI registers swagger route with API Server

Types

type GenesisState

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

func NewDefaultGenesisState() GenesisState

NewDefaultGenesisState generates the default state for the application.

type VirtEngineApp

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

VirtEngineApp extends ABCI appplication

func NewApp

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

NewApp creates and returns a new VirtEngine App.

func Setup

func Setup(isCheckTx bool) *VirtEngineApp

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

func (*VirtEngineApp) AppCodec

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

AppCodec returns VirtEngineApp's app codec.

func (*VirtEngineApp) BeginBlocker

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

BeginBlocker is a function in which application updates every begin block

func (*VirtEngineApp) BlockedAddrs

func (app *VirtEngineApp) BlockedAddrs() map[string]bool

BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.

func (*VirtEngineApp) EndBlocker

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

EndBlocker is a function in which application updates every end block

func (*VirtEngineApp) ExportAppStateAndValidators

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

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

func (*VirtEngineApp) GetKey

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

GetKey returns the KVStoreKey for the provided store key.

func (*VirtEngineApp) GetSubspace

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

GetSubspace returns a param subspace for a given module name.

func (*VirtEngineApp) GetTKey

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

GetTKey returns the TransientStoreKey for the provided store key.

func (*VirtEngineApp) InitChainer

InitChainer application update at chain initialization

func (*VirtEngineApp) InterfaceRegistry

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

InterfaceRegistry returns VirtEngineApp's InterfaceRegistry

func (*VirtEngineApp) LegacyAmino

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

LegacyAmino returns VirtEngineApp's amino codec.

func (*VirtEngineApp) LoadHeight

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

LoadHeight method of VirtEngineApp loads baseapp application version with given height

func (*VirtEngineApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*VirtEngineApp) Name

func (app *VirtEngineApp) Name() string

Name returns the name of the App

func (*VirtEngineApp) RegisterAPIRoutes

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

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

func (*VirtEngineApp) RegisterTendermintService

func (app *VirtEngineApp) RegisterTendermintService(clientCtx client.Context)

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*VirtEngineApp) RegisterTxService

func (app *VirtEngineApp) RegisterTxService(clientCtx client.Context)

RegisterTxService implements the Application.RegisterTxService method.

func (*VirtEngineApp) SimulationManager

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

SimulationManager implements the SimulationApp interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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