Documentation ¶
Index ¶
- Constants
- Variables
- func MacAddrs() map[string]bool
- func MacPerms() map[string][]string
- func MakeCodecs() (codec.Marshaler, *codec.LegacyAmino)
- func MakeEncodingConfig() simparams.EncodingConfig
- func ModuleBasics() module.BasicManager
- func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router)
- type GenesisState
- type VirtEngineApp
- func (app *VirtEngineApp) AppCodec() codec.Marshaler
- func (app *VirtEngineApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *VirtEngineApp) BlockedAddrs() map[string]bool
- func (app *VirtEngineApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *VirtEngineApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *VirtEngineApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *VirtEngineApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *VirtEngineApp) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (app *VirtEngineApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *VirtEngineApp) InterfaceRegistry() codectypes.InterfaceRegistry
- func (app *VirtEngineApp) LegacyAmino() *codec.LegacyAmino
- func (app *VirtEngineApp) LoadHeight(height int64) error
- func (app *VirtEngineApp) ModuleAccountAddrs() map[string]bool
- func (app *VirtEngineApp) Name() string
- func (app *VirtEngineApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *VirtEngineApp) RegisterTendermintService(clientCtx client.Context)
- func (app *VirtEngineApp) RegisterTxService(clientCtx client.Context)
- func (app *VirtEngineApp) SimulationManager() *module.SimulationManager
Constants ¶
const (
AppName = "virtengine"
)
Variables ¶
var (
DefaultHome = os.ExpandEnv("$HOME/.virtengine")
)
Functions ¶
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
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 ¶
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 ¶
func (app *VirtEngineApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
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